On Wed, 2002-12-04 at 13:00, Vidiot wrote: > >On Wed, 2002-12-04 at 11:12, Vidiot wrote: > >> Let me start out by saying that I think that ls is not working the way > >> I expect it. > > > >> > >> Sorry, not the expected behaviour. I do not want it to traverse the link. > >> So, to the man page I went. I see a -L option. so I try it: > >> > >> total 0 > >> drwxrwxr-x 2 root users 4096 Dec 4 10:59 . > >> drwxr-xr-x 18 root root 4096 Dec 4 10:59 .. > >> > >> > >> Same damn result. Yes, the directory is currently empty. > >> > >> I am running RH 7.1 and want ls to return to the old behaviour of not > >> traversing symbolic links, or have an option that works. > > > >I don't think this is a link traversla thing as much as a directory > >traversal thing. what does ls -dl do for you? > >Bret > > Semantics :-) You are still traversing the link to show the contents of the > directory at the other end. Either way, the effect was the same :-) > > BRN <9> ls -ld mysql > total 0 > drwxrwxr-x 2 root users 4096 Dec 4 10:59 . > > I have never noticed a link traversal difference execpt for directories. That being said, your machine does appear sort of different as you are complaining about.
[bhughes@bretsony bhughes]$ ln -s /usr/local mylocal [bhughes@bretsony bhughes]$ ls -d mylocal mylocal [bhughes@bretsony bhughes]$ ls mylocal acrosslite1.2 chkrootkit-0.37 doc games lib man share bin development etc include libexec sbin src is this your expected behavior? [bhughes@bretsony bhughes]$ ls -dl mylocal lrwxrwxrwx 1 bhughes bhughes 10 Dec 4 13:07 mylocal -> /usr/local [bhughes@bretsony bhughes]$ rpm -q redhat-release redhat-release-7.2-1 [bhughes@bretsony bhughes]$ Did it used to work on the same machine? nothing else funky like nfs mounts or anything like that that might be affecting behavior? Bret -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list