diff options
Diffstat (limited to 'gnu/usr.bin/gzip/znew')
-rw-r--r-- | gnu/usr.bin/gzip/znew | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/gnu/usr.bin/gzip/znew b/gnu/usr.bin/gzip/znew index 01be32c..5c832e8 100644 --- a/gnu/usr.bin/gzip/znew +++ b/gnu/usr.bin/gzip/znew @@ -40,21 +40,15 @@ if test "$ext" = ".Z"; then exit 1 fi -A= -fileno=0 - for arg do case "$arg" in - -*) opt="$opt $arg";; - *) fileno=`expr $fileno + 1` - eval A$fileno=\$arg - A="$A \"\$A$fileno\"" - ;; + -*) opt="$opt $arg"; shift;; + *) break;; esac done -if test $fileno -eq 0; then +if test $# -eq 0; then echo "recompress .Z files into $ext (gzip) files" echo usage: `echo $0 | sed 's,^.*/,,'` "[-tv9KP]" file.Z... echo " -t tests the new files before deleting originals" @@ -65,8 +59,6 @@ if test $fileno -eq 0; then exit 1 fi -eval set "$A" # the files are now in $1, $2, ... - opt=`echo "$opt" | sed -e 's/ //g' -e 's/-//g'` case "$opt" in *t*) check=1; opt=`echo "$opt" | sed 's/t//g'` |