diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2017-11-12 23:02:02 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2017-11-12 23:11:07 -0800 |
commit | f55f2be13c2f1afa8d76daadabb3b24c7fe34743 (patch) | |
tree | 21a93ae6a3626641d93fb8271ae97c4992702824 /zmore.in | |
parent | b1d08ed0e26f0a8c81910c5950275d28ce06bd9c (diff) | |
download | gzip-f55f2be13c2f1afa8d76daadabb3b24c7fe34743.tar.gz |
maint: script diagnostics status cleanup
Problem reported by Bruno Haible (Bug#29266#20).
* NEWS: Mention this.
* gunzip.in, gzexe.in, zcat.in, zcmp.in, zdiff.in, zforce.in:
* zgrep.in, zless.in, zmore.in, znew.in:
Use printf instead of echo if the argument might contain ‘\’, at
least in theory. Don’t assume printf exits with status 1 on
failure; it might be some other positive status.
* gzexe.in: Use printf consistently instead of echo, and
proscribe it instead of echo.
Diffstat (limited to 'zmore.in')
-rw-r--r-- | zmore.in | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -31,8 +31,8 @@ Like 'more', but operate on the uncompressed contents of any compressed FILEs. Report bugs to <bug-gzip@gnu.org>." case $1 in - --h*) exec printf '%s\n' "$usage";; - --v*) exec printf '%s\n' "$version";; + --h*) printf '%s\n' "$usage" ; exit;; + --v*) printf '%s\n' "$version"; exit;; --) shift;; -?*) printf >&2 '%s\n' "$0: $1: unknown option; try '$0 --help' for help" exit 1;; |