From: Will Estes Date: Mon, 23 Sep 2002 20:39:53 +0000 (+0000) Subject: complain audibly when argument not supplied; echo on stderr when writing error messages X-Git-Tag: flex-2-5-23~58 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c62a50590b1cac6f67578d974dc58f8e81aafadd;p=flex complain audibly when argument not supplied; echo on stderr when writing error messages --- diff --git a/tests/create-test b/tests/create-test index e02c2c0..60d57f2 100755 --- a/tests/create-test +++ b/tests/create-test @@ -3,17 +3,18 @@ TESTFILES="Makefile.am scanner.l parser.y .cvsignore test.input" if [ ! $# -eq 1 ] ; then + echo 1>&2 Usage: $0 test-name exit 1 fi if test -e "$1" ; then - echo "$1 exists already" + echo 1>&2 "$1 exists already" exit 1 fi mkdir $1 if test "$?" -ne 0 ; then - echo "mkdir $1 failed" + echo 1>&2 "mkdir $1 failed" exit 1 fi