diff --git a/ase/test/awk/regress.sh b/ase/test/awk/regress.sh index 10711970..e3bdc6af 100755 --- a/ase/test/awk/regress.sh +++ b/ase/test/awk/regress.sh @@ -18,7 +18,7 @@ test() output=`echo $script | sed 's/\.awk$/.out/g'` ./awk $script emp-en.data > "$output.$pid" - diff $output "$output.$pid" + diff -y $output "$output.$pid" if [ $? -ne 0 ] then echo "###################################" @@ -36,6 +36,12 @@ test() # main # #--------# +if [ ! -x ./awk ] +then + echo "Error: cannot locate a relevant awk interpreter" + exit 1; +fi + if [ $# -ne 1 ] then echo "Usage: $0 init"