bug-fileutils
[Top][All Lists]
Advanced

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

ls -Ll derefernce but does not print dereferenced name


From: Tobias C. Rittweiler
Subject: ls -Ll derefernce but does not print dereferenced name
Date: Wed, 22 May 2002 21:18:12 +0200

Hello <whoever seeing this mail>,

i found a probably bug in ls -L (dereference) today, take a look:

-snip-
address@hidden /tmp]$ cd /tmp ; touch source ; chmod 000 source ; ln -s source 
link
address@hidden /tmp]$ ls -l link ; ls -l source ; ls -Ll link
lrwxrwxrwx    1 magma    freebits        6 Mai 22 21:11 link -> source
----------    1 magma    freebits        0 Mai 22 21:11 source
----------    1 magma    freebits        0 Mai 22 21:11 link
-snap-

Why doesn't ls -L print the dereferenced name of the file the link is
pointing? Any reason?
It would be great if it did it, because you can determine a file a
link is pointing to without a extravagant...
     ls -l | sed 's,.* -> \(.*\),\1,'
                                          ...or something like that.

FYI:
-snip-
address@hidden /tmp]$ ls --version
ls (GNU fileutils) 4.0.36
-snap-


--
cheers,
       Tobias

http://freebits.org




reply via email to

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