bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: ls display directory context?


From: Nic Ferrier
Subject: Re: ls display directory context?
Date: Thu, 20 Jan 2005 16:24:23 +0000

Andreas Schwab <address@hidden> writes:

> Nic Ferrier <address@hidden> writes:
>
>> I've considered the semantics of the --dircontext switch. I think what
>> I actually want is ls to be able to acknowledge what directory I told
>> is to look in.
>>
>> So if I say:
>>
>>    ls --dircontext childdir
>>
>> it comes back with:
>>
>>    childdir/a.txt childdir/b.txt
>
> $ ls childdir | sed 's,^,childdir/,'
>
> (Uses -1 format and doesn't handle newlines in file names.)

or commas in the replacement (of course, you can always choose a new
replacement, but you get my point).

But it is a good solution. Much better than my find.

But do you think it is good enough? Wouldn't an ls switch be nice for
this kind of thing?

I'll shut up about it no one else can see the utility of the feature.

-- 
Nic Ferrier
http://www.tapsellferrier.co.uk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]