There may be some odd situation where a shell returns 0 despite not executing the script correctly; now 0 is an error condition.
8 lines
95 B
Text
8 lines
95 B
Text
set +e
|
|
( . ./shelltest.od )
|
|
RV=$?
|
|
case $RV in
|
|
40) exit 0 ;;
|
|
42) exit 0 ;;
|
|
*) exit 1 ;;
|
|
esac
|