--- sh.test.orig Wed Sep 6 13:31:09 2000 +++ sh.test Thu May 24 19:20:24 2001 @@ -36,10 +36,16 @@ if egrep -n -e 'test[ ]+X' $scripts; then echo "use \`test \"X...\"' instead of \`test X'" status=1 fi +# Check for using test $... instead of test "$... +if egrep -n -e 'test[ ]+X?$' $scripts; then + echo "use \`test \"\$...\"' instead of \`test \$'" + status=1 +fi + # Never use test -e. if egrep -n -e 'test[ ]+-e' $scripts; then echo "use \`test -f' instead of \`test -e'" status=1 fi