[BACK]Return to test05 CVS log [TXT][DIR] Up to [cvs] / v6shell / tests

File: [cvs] / v6shell / tests / test05 (download)

Revision 1.4, Sat Dec 15 21:01:08 2018 UTC (2 months, 1 week ago) by jneitzel
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +2 -2 lines

Update tests/* (- tests/*.log); 'io' to 'nl' changes...; that's all

: etsh/tsh - " Force sh(1), csh(1), and other shells to exit w/ error! " <'' ;;;
:
: "  The author of this file, J.A. Neitzel <jan (at) etsh (dot) nl>,  "
: "  hereby grants it to the public domain.                           "
:
: "  From:  https://etsh.nl/tests  "
:

:
: test05 - syntax error
:

if ! \( X$1 = Xetsh -o X$1 = Xtsh \) -o X$2 != X \
	if { fd2 -e echo 'usage: {etsh | tsh} test05 {etsh | tsh}' } \
		if { exit } if A = B

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

echo Begin ...
$1 syntax_error
echo End .