[comp.unix.shell] Different versions of sh

jms@tardis.Tymnet.COM (Joe Smith) (01/18/91)

In article <1991Jan2.174157.21530@usenet.ins.cwru.edu> chet@po.CWRU.Edu writes:
>The BSD /bin/sh is the one from v7, with minimal changes for the 4.2 BSD
>signal semantics (restarted system calls, etc.) and # as a comment
>character.  The AT&T /bin/sh changed drastically beginning with System V.2,
>and further changes appeared in System V.3. 
	[Lots of good details deleted.]

From the discription, it sounds like the sh that Sun ships with SunOS-3.5
and later is much closer to the ATT version than the BSD version.
Is this a correct interpretation?
-- 
Joe Smith (408)922-6220 | SMTP: jms@tardis.tymnet.com or jms@gemini.tymnet.com
BT Tymnet Tech Services | UUCP: ...!{ames,pyramid}!oliveb!tymix!tardis!jms
PO Box 49019, MS-C51    | BIX: smithjoe | CA license plate: "POPJ P," (PDP-10)
San Jose, CA 95161-9019 | humorous dislaimer: "My Amiga 3000 speaks for me."

chet@odin.INS.CWRU.Edu (Chet Ramey) (01/18/91)

In article <1440@tardis.Tymnet.COM> jms@tardis.Tymnet.COM (Joe Smith) writes:
>From the discription, it sounds like the sh that Sun ships with SunOS-3.5
>and later is much closer to the ATT version than the BSD version.
>Is this a correct interpretation?

Yes.  The version of sh shipped in SunOS 3.x (x >= 0, I think -- Guy Harris
will catch me if I'm wrong) is based on the V.2 /bin/sh, with mods from the
BRL version of that shell to fix up it's baroque memory management a bit.

Starting with SunOS 4.0, the Sun sh is derived from the V.3 sh.

Chet
-- 
Chet Ramey				``There's just no surf in
Network Services Group			  Cleveland, U.S.A. ...''
Case Western Reserve University
chet@ins.CWRU.Edu		My opinions are just those, and mine alone.