On Tue, 06 Nov 2007 17:20:14 +0100 "Julian H. Stacey" wrote:
> It seems to me that all except csh (including bourne shell !) are
> broken !! Amazing ! None of them cope properly actually following
> symbolic links, they all make false premise the /some_path/.. ==
> /some_path !

That's not a bug, that's a feature. When symlinks were introduced in
4.1c (or thereabouts), people were often surprised to do:

$ cd /some_path/child
$ ...
$ cd ..

and not wind up in /some_path, or having the ever popular sh loop:

$ for dir in
$ do
$ cd $dir
$ ...
$ cd ..
$ done

start working on something totally unrelated to the current directory
halfway through the loop. So sh (and etc.) added a feature so that
those things worked the way users expected them to.

Basically, the shells don't make a false premise that /some_path/.. ==
/some_path, they make the premise appear to be true as a feature.

Mike Meyer http://www.mired.org/consulting.html
Independent Network/Unix/Perforce consultant, email for more information.
freebsd-hackers@freebsd.org mailing list
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"