Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 31 Dec 1996 11:17:43 GMT
From:      rb@gid.co.uk (Bob Bishop)
To:        freebsd-bugs@FreeBSD.org
Cc:        Helbig@MX.BA-Stuttgart.De, roberto@keltia.freenix.fr, joerg_wunsch@uriah.heep.sax.de (Joerg Wunsch), bde@zeta.org.au (Bruce Evans)
Subject:   Re: bin/2331: strange output of sh's pwd on symlinked directories
Message-ID:  <v01540b09aeeea4bd2715@[194.32.164.2]>

next in thread | raw e-mail | index | archive | help
At 10:30 am 31/12/96, J Wunsch wrote:
>As Bruce Evans wrote:
>
>> >It is not really a bug, jsust use a modern shell :-)
>>
>> It is really a bug.  sh's pwd used to be equivalent to /bin/pwd.  Now
>> it is broken after `cd symlink; cd ..'.
>
>That's not a bug.  That's ksh compatible now, whether you like it or
>not. :-}  Since ksh is Posix, it cannot be a bug, by definition. :-P
>
>I always hated this ksh braindeadness where you gotta explicitly call
>/bin/pwd if you want the ``canonical pathname''.  However, since Posix
>has sanctioned all bugfeatures of Mr. Korn, we have to live with this
>situation anyway.

Eh? Why does /bin/sh have to take this nonsense on board?

> Our /bin/sh used to be one of the last remaining
>shells where the output of the builtin pwd was still similar to
>/bin/pwd (no surprise, since it did call /bin/pwd!).

It's for reasons like this that no-one in their right mind uses anything
except /bin/sh to execute scripts (POSIX notwithstanding). Heaven knows how
many scripts in the world will break if this insanity is perpetuated. I
think that having pwd != /bin/pwd for /bin/sh is a *very bad idea*.


--
Bob Bishop              (0118) 977 4017  international code +44 118
rb@gid.co.uk        fax (0118) 989 4254  between 0800 and 1800 UK





Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?v01540b09aeeea4bd2715>