On 16:59 01 Mar 2003, Vidiot <[EMAIL PROTECTED]> wrote:
| >And plain "alias"?
| 
| Nothing dealing with ls.  This problem happens with root and another user 
| that I became by using su - <username> (as root).
| 
| >What does:
| >
| >     ln -s /foo bah
| >     set -vx;ls -l bah; /bin/ls -l bah;set +vx
| 
| + ls -l bah
| total 3211932
| lrwxrwxrwx    1 brown    users           4 Mar  1 16:54 bah -> /foo
| + /bin/ls -l bah
| total 3211932
| lrwxrwxrwx    1 brown    users           4 Mar  1 16:54 bah -> /foo
| + set +vx
| 
| mkdir /foo
| set -vx;ls -la bah; /bin/ls -la bah;set +vx
| 
| + ls -la bah
| total 0
| drwxrwxr-x    2 root     root         4096 Mar  1 16:55 .
| drwxr-xr-x   24 root     root         4096 Mar  1 16:55 ..
| + /bin/ls -la bah
| total 0
| drwxrwxr-x    2 root     root         4096 Mar  1 16:55 .
| drwxr-xr-x   24 root     root         4096 Mar  1 16:55 ..
| + set +vx

Weirder and weirder. I've tried this on RH7 and RH8 and it behaves sanely
(i.e. does NOT follow the symlink) for me.
What disto are you running, and what version of ls (or fileutils)?
-- 
Cameron Simpson, DoD#743        [EMAIL PROTECTED]    http://www.zip.com.au/~cs/

Think of it as evolution in action.     - Tony Rand, _Oath of Fealty_



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to