2 ms·
> because on Solaris /bin/sh is the real McCoy - Steven Bourne's shell from 1972 - 1977 Wow-- I hadn't realized just how wrong your argument was! Bourne's sh
by mlyle 7y ago
> because on Solaris /bin/sh is the real McCoy - Steven Bourne's shell from 1972 - 1977
Wow-- I hadn't realized just how wrong your argument was! Bourne's shell from the outset supported set -e!
From Bourne's "An Introduction to the Unix Shell", ~1977-1978 (converted to HTML at http://porkmail.org/era/unix/shell.html http://porkmail.org/era/unix/shell.html )
> The shell flag -e causes the shell to terminate if any error is detected.
and the document goes on to state that you can use 'set' to set shell flags.
It's in the V7 source, too:
CHAR flagchar[] = {
'x', 'n', 'v', 't', 's', 'i', 'e', 'r', 'k', 'u', 0
};
INT flagval[] = {
execpr, noexec, readpr, oneflg, stdflg, intflg, errflg, rshflg,
keyflg, setflg, 0
};
Along with a proper call to options() in the set builtin.
If the basis of your whole argument is history, you're complaining about something that would have worked on V7 or 3BSD. :D Apparently they are "too new."
edit: Running V7 on a PDP-11 emulator has the anticipated results:
boot
Boot
: hp(0,0)unix
mem = 2020544
# RESTRICTED RIGHTS: USE, DUPLICATION, OR DISCLOSURE
IS SUBJECT TO RESTRICTIONS STATED IN YOUR CONTRACT WITH
WESTERN ELECTRIC COMPANY, INC.
WED DEC 31 19:15:00 EST 1969
login: root
Password:
You have mail.
#
#
# set -e
# false
login: