$ ); echo $? echoed 0,all other shells echo 2.
authorChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Sat, 20 May 1995 02:03:09 +0000 (18:03 -0800)
committerChristos Zoulas <christos@ucbvax.Berkeley.EDU>
Sat, 20 May 1995 02:03:09 +0000 (18:03 -0800)
commit6a43fdd10a599893bc0d342b248c8996f0efa90f
treeaf7db03981d10fb8788172ac19a9ad59a5d457d8
parenta4b922d6bf009f807e2aceef807be90f2fa8a490
$ ); echo $? echoed 0,all other shells echo 2.
Now we set the exitstatus to 2 for all EXERROR errors.
Also I changed the exitstatus to 1 when a command is not found
to comply with historical practice.

SCCS-vsn: bin/sh/main.c 8.5
SCCS-vsn: bin/sh/eval.c 8.8
usr/src/bin/sh/eval.c
usr/src/bin/sh/main.c