Article View: comp.bugs.4bsd
Article #1247Re: Bug/misfeature in 4bsd /bin/sh
From: Guy Harris
Date: Fri, 18 Nov 1988 17:15
Date: Fri, 18 Nov 1988 17:15
33 lines
1738 bytes
1738 bytes
>All the non-Berkeley versions of UNIX I can get my hands on give: ... >This is consistent with the man page for sh(1), where it says: ... >On the other hand, under 4.3bsd we're treated to the following: ... >Eh? I notice also that the Berkeley folks have removed the above >sentence from the sh(1) man page. The question I have, is this all >a bug or a misfeature? Does anyone happen to know why they changed >the semantics of the shell in this somewhat rude way? Did you try this under V7? The Berkeley shell is, as I remember, pretty much the V7 shell, with support for "#" comments added. If it does the wrong thing under V7, you may have made an incorrect assumption here, namely that in the Good Old Days it did the right thing and Berkeley gratuitously changed it and ripped the comment in question from the man page. It may, in fact, have been that AT&T *fixed* the behavior of the shell and *added* the comment in question. Blame where blame is due, and all that.... >(Someone reports that even SunOS gets it right, despite being >4bsd-derived. Another incorrect assumption; SunOS cannot be described solely by the term "4bsd-derived". SunOS 3.0's Bourne shell and "make" were derived from the System V Release 2 versions, and the Bourne shell has been an S5 one ever since, which is why it gets it right.
Technical Details
Message-ID:
<474@auspex.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!auspex!guyReferences:
<117@sickkids.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!uunet!auspex!guy From: guy@auspex.UUCP (Guy Harris) Newsgroups: comp.bugs.4bsd,comp.unix.questions,comp.unix.wizards Subject: Re: Bug/misfeature in 4bsd /bin/sh Message-ID: <474@auspex.UUCP> Date: 18 Nov 88 17:15:43 GMT References: <117@sickkids.UUCP> Reply-To: guy@auspex.UUCP (Guy Harris) Organization: Auspex Systems, Santa Clara Lines: 33