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

Re: ls -l format changed ?



On Mon, 01 Jul 2002, Sean 'Shaleh' Perry wrote:

> 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 ->
> boot/vmlinuz-2.4.18
> 
> $ LC_ALL="en_US" ls -l vmlinuz
> lrwxrwxrwx    1 root     root           19 02-26 00:07 vmlinuz ->
> boot/vmlinuz-2.4.18
> 
> note the time lost a field.

It's broken too:

| weasel@valiant:~$ LC_ALL=C ls -l typescript
| -rw-rw-r--    1 weasel   weasel        563 May 27 10:31 typescript
| weasel@valiant:~$ LC_ALL=de_AT@euro ls -l typescript
| -rw-rw-r--    1 weasel   weasel        563 05-27 10:31 typescript
                                             ^^^^^^^^^^^
| weasel@valiant:~$ ls --version
| ls (fileutils) 4.1.9

| weasel@marvin:~$ LC_ALL=C ls -l typescript
| -rw-rw-r--    1 weasel   weasel        563 May 27 10:31 typescript
| weasel@marvin:~$ LC_ALL=de_AT@euro ls -l typescript
| -rw-rw-r--    1 weasel   weasel        563 27. Mai 10:31 typescript
                                             ^^^^^^^^^^^^^
| weasel@marvin:~$ ls --version
| ls (fileutils) 4.1

So it did work correctly before.
					yours,
					peter

-- 
 PGP signed and encrypted  |  .''`.  ** Debian GNU/Linux **
    messages preferred.    | : :' :      The  universal
                           | `. `'      Operating System
 http://www.palfrader.org/ |   `-    http://www.debian.org/

Attachment: pgpdKXGT9pZg5.pgp
Description: PGP signature


Reply to: