blob: e24cfd3f2a8fca3b1f05da6809de911cdb371dee (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
echo 1>&2
echo "Invalid command-line argument combination(s)." 1>&2
echo "Error message(s) should appear below the line." 1>&2
echo "-----------------------------------------------------------" 1>&2
tmpdir=${tmpdir:-/tmp}
test_out=${tmpdir}/test_out
# define function
invCmd () { $1 > ${test_out} && \
printf "Unexpected success ${testcnt} " || printf "Expected failure ${testcnt} "
test -s ${test_out} && echo "unexpected output" || echo "(no output)"
rm -f ${test_out}
testcnt=$(($testcnt +1)); }
testcnt=1
|