diff -r fb8c5a66dbe8 -r df671fa2562a lib/Tools/nonascii --- a/lib/Tools/nonascii Fri Sep 01 17:48:31 2000 +0200 +++ b/lib/Tools/nonascii Fri Sep 01 17:50:36 2000 +0200 @@ -1,13 +1,15 @@ #!/bin/bash # # $Id$ +# Author: Markus Wenzel, TU Muenchen +# License: GPL (GNU GENERAL PUBLIC LICENSE) # # DESCRIPTION: check files for non-ASCII characters ## diagnostics -PRG=$(basename $0) +PRG=$(basename "$0") function usage() { @@ -22,9 +24,9 @@ ## process command line -[ $# -eq 0 -o "$1" = "-?" ] && usage +[ "$#" -eq 0 -o "$1" = "-?" ] && usage -SPECS="$@"; shift $# +SPECS="$@"; shift "$#" ## main @@ -33,5 +35,5 @@ AUTO_PERL=perl find $SPECS \( -name \*.ML -o -name \*.thy \) -print | \ - xargs $AUTO_PERL -w -e \ + xargs "$AUTO_PERL" -w -e \ 'while() { if (m/[\x80-\xff]/) { print "$ARGV: $_"; }}'