[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls display directory context?
From: |
Andreas Schwab |
Subject: |
Re: ls display directory context? |
Date: |
Thu, 20 Jan 2005 17:13:43 +0100 |
User-agent: |
Gnus/5.110002 (No Gnus v0.2) Emacs/21.3.50 (gnu/linux) |
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.)
Andreas.
--
Andreas Schwab, SuSE Labs, address@hidden
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."