bug-coreutils
[Top][All Lists]
Advanced

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

ls -Fl -- no @ on symlinks?


From: Bob Proulx
Subject: ls -Fl -- no @ on symlinks?
Date: Mon, 5 Jul 2004 23:15:12 -0600
User-agent: Mutt/1.3.28i

One of the folks at work called to my attention that 'ls -Fl' prints
identifying characters at the end of the file for everything but not
for a symlink.

  lrwxrwxr-x  1 rwp  esl    3 Jul  5 23:02 bar1 -> foo
  lrwxrwxr-x  1 rwp  esl    7 Jul  5 23:09 bar2 -> somedir/

The docs say:

  `-F'
  `--classify'
  `--indicator-style=classify'
       Append a character to each file name indicating the file type.
       Also, for regular files that are executable, append `*'.  The file
       type indicators are `/' for directories, `@' for symbolic links,
       `|' for FIFOs, `=' for sockets, and nothing for regular files. Do
       not follow symbolic links listed on the command line unless the
       `--dereference-command-line' (`-H'), `--dereference' (`-L'), or
       `--dereference-command-line-symlink-to-dir' options are specified.

That seems to say an @ should be there.  I guess I would expect this.

  lrwxrwxr-x  1 rwp  esl    3 Jul  5 23:02 bar1@ -> foo
  lrwxrwxr-x  1 rwp  esl    7 Jul  5 23:09 bar2@ -> somedir/

I can't say I have ever missed having that on a 'ls -l' listing.  I
also note that the HP-UX behaves exactly the same as GNU ls in this
regard.  So it is probably fine.  Is it?

I am impressed that it printed the classifier on the value of the
symlink, however.  That is above and beyond. :-)  BTW the @ is missing
from the value of the symlink too if the symlink is pointing to
another symlink.

Bob




reply via email to

[Prev in Thread] Current Thread [Next in Thread]