And some Bourne shells expand command substitutions first
$ (exit 5)
$ x=$? y=`exit 10`
$ echo $x
10
It's worse than that. The v7 sh performed assignments right to left.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU chet@case.edu http://tiswww.cwru.edu/~chet/