[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ls -Fl -- no @ on symlinks?
From: |
Paul Eggert |
Subject: |
Re: ls -Fl -- no @ on symlinks? |
Date: |
Fri, 09 Jul 2004 17:12:01 -0700 |
User-agent: |
Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux) |
address@hidden (Bob Proulx) writes:
> Jim Meyering wrote:
>> I think that such an `@' would be redundant, coming just before
>> the `->' indicator. Solaris 5.9's /bin/ls also does not display
>> the `@' there. Why waste valuable screen real estate?
>
> You have a strong argument for the @ being redundant since you can
> clearly see the -> there. You have convinced me.
I like Jim's argument about screen real estate and I agree that
settles the matter (unless the POSIX folks rule otherwise -- but who
are we to provoke them? :-), but I'd like to mention that Solaris 9
/bin/ls definitely does not conform to POSIX in this area, so its
value as a guide is questionable. For example:
$ ls -Fld *dir
lrwxrwxrwx 1 eggert eggert 6 Jul 9 16:51 bardir -> foodir/
drwxrwsr-x 2 eggert eggert 512 Jul 9 16:51 foodir/
$ ls -F *dir
bardir:
foodir:
$ ls -Fd *dir
bardir/ foodir/
POSIX clearly says that the output of the last two commands should
look like this (which is what coreutils ls does):
$ ls -F *dir
bardir@
foodir:
$ ls -Fd *dir
bardir@ foodir/
Solaris 9 /usr/xpg4/bin/ls is also nonconforming.