X-Git-Url: https://git.gag.com/?a=blobdiff_plain;f=zcat.in;h=390dcfef1f2c638b4b41f4265326b2e43771a1ca;hb=63a4dabcae87d368cccb3365f2266b8941ba8915;hp=48b6cda14f46293df4a124c2df95115e7b333b20;hpb=c7e61475680fa226bd9b8bdd469cd66914e630f5;p=debian%2Fgzip diff --git a/zcat.in b/zcat.in index 48b6cda..390dcfe 100644 --- a/zcat.in +++ b/zcat.in @@ -1,7 +1,7 @@ #!/bin/sh # Uncompress files to standard output. -# Copyright (C) 2007 Free Software Foundation +# Copyright (C) 2007, 2010-2018 Free Software Foundation, Inc. # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -17,16 +17,10 @@ # with this program; if not, write to the Free Software Foundation, Inc., # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. -bindir=@bindir@ -case $1 in ---__bindir) bindir=${2?}; shift; shift;; -esac -PATH=$bindir:$PATH - version="zcat (gzip) @VERSION@ -Copyright (C) 2007, 2009 Free Software Foundation, Inc. +Copyright (C) 2007, 2011-2018 Free Software Foundation, Inc. This is free software. You may redistribute copies of it under the terms of -the GNU General Public License . +the GNU General Public License . There is NO WARRANTY, to the extent permitted by law. Written by Paul Eggert." @@ -39,6 +33,7 @@ Uncompress FILEs to standard output. -q, --quiet suppress all warnings -r, --recursive operate recursively on directories -S, --suffix=SUF use suffix SUF on compressed files + --synchronous synchronous output (safer if system crashes, but slower) -t, --test test compressed file integrity -v, --verbose verbose mode --help display this help and exit @@ -49,8 +44,8 @@ With no FILE, or when FILE is -, read standard input. Report bugs to ." case $1 in ---help) exec echo "$usage";; ---version) exec echo "$version";; +--help) printf '%s\n' "$usage" || exit 1; exit;; +--version) printf '%s\n' "$version" || exit 1; exit;; esac exec gzip -cd "$@"