[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: MiNT-Library: Bugs
> >Frank Bartels wrote:
> >> > stat.c: +nox
> >> > In lstat(), maybe make filenames with trailing slash follow symlinks?
> >> > sometimes it would be nice if i could do `ls -l /usr/' and get whats
> >> > in there, not just the link...
> >> > [This sounds like a bad idea to me. Sounds like a kludge in ls is
> >> > what's needed here, if anything. -entropy]
> >>
> >> No! No! No! `ls -l /usr/' *has* to follow the link! And it does on my
> >> SunOS 4 and FreeBSD machine. *Please* change this behaviour!
SunOS 4.1.3_U1:
benni@pfsparc02[p0] ~% ls baba
decode.2452 gopheBAAa03374 magi sh15740 snd.3398
est.3398 m-prts-achim mbox.benni sh15741
benni@pfsparc02[p0] ~% ls -l baba
lrwxrwxrwx 1 benni 4 Nov 22 16:17 baba -> /tmp
benni@pfsparc02[p0] ~% ls -l baba/
lrwxrwxrwx 1 benni 4 Nov 22 16:17 baba/ -> /tmp
benni@pfsparc02[p0] ~%
So, it *doesn't* follow the link...
To follow the link, you must use the '-L' option: (from the manpage)
-L If argument is a symbolic link, list the file or direc-
tory the link references rather than the link itself.
Benni
--
Benjamin Lorenz, <NEW>Johannisstr. 15, D-66111 Saarbruecken<NEW>
Phone: +49 681 <NEW>35334<NEW>, E-mail: benni@phil15.uni-sb.de