projects
/
debian
/
gzip
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
delete trailing whitespace from control files
[debian/gzip]
/
zgrep.in
diff --git
a/zgrep.in
b/zgrep.in
index 7ce45ae8b3900afb12e6147c7039e04e297c3a18..3efdb529b8f7dc384a001562ca13261183d70d8d 100644
(file)
--- a/
zgrep.in
+++ b/
zgrep.in
@@
-3,7
+3,7
@@
# zgrep -- a wrapper around a grep program that decompresses files as needed
# Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
# zgrep -- a wrapper around a grep program that decompresses files as needed
# Adapted from a version sent by Charles Levert <charles@comm.polymtl.ca>
-# Copyright (C) 1998, 2001-2002, 2006-2007, 2009-201
6
Free Software Foundation,
+# Copyright (C) 1998, 2001-2002, 2006-2007, 2009-201
8
Free Software Foundation,
# Inc.
# Copyright (C) 1993 Jean-loup Gailly
# Inc.
# Copyright (C) 1993 Jean-loup Gailly
@@
-25,9
+25,9
@@
grep='${GREP-'\''@GREP@'\''}'
version='zgrep (gzip) @VERSION@
grep='${GREP-'\''@GREP@'\''}'
version='zgrep (gzip) @VERSION@
-Copyright (C) 2010-201
6
Free Software Foundation, Inc.
+Copyright (C) 2010-201
8
Free Software Foundation, Inc.
This is free software. You may redistribute copies of it under the terms of
This is free software. You may redistribute copies of it under the terms of
-the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
+the GNU General Public License <http
s
://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.
Written by Jean-loup Gailly.'
There is NO WARRANTY, to the extent permitted by law.
Written by Jean-loup Gailly.'
@@
-133,18
+133,23
@@
while test $# -ne 0; do
test -n "$pattmp" && rm -f "$pattmp"
(exit 2); exit 2
' HUP INT PIPE TERM 0
test -n "$pattmp" && rm -f "$pattmp"
(exit 2); exit 2
' HUP INT PIPE TERM 0
+ case $TMPDIR in
+ / | /*/) ;;
+ /*) TMPDIR=$TMPDIR/;;
+ *) TMPDIR=/tmp/;;
+ esac
if type mktemp >/dev/null 2>&1; then
if type mktemp >/dev/null 2>&1; then
- pattmp=$(mktemp) || exit 2
+ pattmp=$(mktemp
"${TMPDIR}zgrepXXXXXXXXX"
) || exit 2
else
set -C
else
set -C
- pattmp=${TMPDIR
-/tmp}/zgrep.
$$
+ pattmp=${TMPDIR
}zgrep
$$
fi
eval "cat --$optarg" >"$pattmp" || exit 2
optarg=' "$pattmp"'
fi
have_pat=1;;
(--h | --he | --hel | --help)
fi
eval "cat --$optarg" >"$pattmp" || exit 2
optarg=' "$pattmp"'
fi
have_pat=1;;
(--h | --he | --hel | --help)
-
echo
"$usage" || exit 2
+
printf '%s\n'
"$usage" || exit 2
exit;;
(-H | --wi | --wit | --with | --with- | --with-f | --with-fi \
| --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \
exit;;
(-H | --wi | --wit | --with | --with- | --with-f | --with-fi \
| --with-fil | --with-file | --with-filen | --with-filena | --with-filenam \
@@
-158,7
+163,7
@@
while test $# -ne 0; do
(-h | --no-f*)
no_filename=1;;
(-V | --v | --ve | --ver | --vers | --versi | --versio | --version)
(-h | --no-f*)
no_filename=1;;
(-V | --v | --ve | --ver | --vers | --versi | --versio | --version)
-
echo
"$version" || exit 2
+
printf '%s\n'
"$version" || exit 2
exit;;
esac
exit;;
esac