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

Re: ls -l format changed ?

On Mon, Jul 01, 2002 at 01:30:20PM +0400, Nikita V. Youshchenko wrote:
> Seems that 'ls' from the latest fileutils package changed the default 
> format for 'ls -l'.
> Now date and time is printed in different format.

man ls. look at --time-style. Also check the info page. I'm not
convinced that I'm going to leave the debian default this way but...

> I've used to use
>   ls -l xxx | awk '{print($11)}'
> to dereference symlinks from shell scripts.

...that's fundamentally broken. You *should not* depend on
locale-dependent output. You'll have somewhat better luck depending on
the output of the "C" locale, which is more standardized. (But such a
dependency will still not necessarily be portable and doing this is not

Mike Stone

To UNSUBSCRIBE, email to debian-devel-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: