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

RE: ls -l format changed ?

On 01-Jul-2002 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.
> I've used to use
>   ls -l xxx | awk '{print($11)}'
> to dereference symlinks from shell scripts. This no longer works, because 
> now date and time takes different number or fields in ls -l output. Even 
> worse, it is non-constant now: sometimes 1, sometimes 2 -- previous version 
> always used 3.
> Well, my own scripts are my own problems.
> But is this sort of breaking backward compatability really necessary for 
> Debian?

The fields now depend more heavily on the value of LC_ALL and LANG, and not for
the better it seems.

$ LC_ALL="C" ls -l vmlinuz
lrwxrwxrwx    1 root     root           19 Feb 26 00:07 vmlinuz ->

$ LC_ALL="en_US" ls -l vmlinuz
lrwxrwxrwx    1 root     root           19 02-26 00:07 vmlinuz ->

note the time lost a field.

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

Reply to: