: osh/sh6 - " Force sh(1), csh(1), and other shells to exit w/ error! " <'' ;;;
:
: "  The author of this file, J.A. Neitzel <jan (at) v6shell (dot) org>,  "
: "  hereby grants it to the public domain.                               "
:
: "  From:  http://v6shell.org/regression_tests  "
:

:
: test05 - syntax error
:

if ! \( X$1 = Xosh -o X$1 = Xsh6 \) -o X$2 != X \
	if { fd2 -e echo 'usage: {osh | sh6} test05 {osh | sh6}' } \
		if { exit } if A = B

sed 's,@SH_TO_TEST@,'$1',g' <syntax_error.in >syntax_error

echo Begin ...
$1 syntax_error
echo End .
