summaryrefslogtreecommitdiffstats
path: root/gnu/usr.bin/gzip/znew
diff options
context:
space:
mode:
authornate <nate@FreeBSD.org>1993-10-14 00:33:38 +0000
committernate <nate@FreeBSD.org>1993-10-14 00:33:38 +0000
commiteb837699da243caa78b6b6ddf8065c8f6eb8a2e8 (patch)
tree4fbeb313da94b4852b82e5b0448d45f2e7ae41e9 /gnu/usr.bin/gzip/znew
parentf2586b2d69a4cd1077f15d406ee9c5e345ac3b8d (diff)
downloadFreeBSD-src-eb837699da243caa78b6b6ddf8065c8f6eb8a2e8.zip
FreeBSD-src-eb837699da243caa78b6b6ddf8065c8f6eb8a2e8.tar.gz
Updated gzip from version 1.2.2 to 1.2.4 due to popular demand
Diffstat (limited to 'gnu/usr.bin/gzip/znew')
-rw-r--r--gnu/usr.bin/gzip/znew14
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'`
OpenPOWER on IntegriCloud