Package: gzip
Version: 1.4-2
Severity: wishlist
gunzip only operates on those files given that have a gzip extension:
gunzip takes a list of files on its command line and replaces each
file whose name ends with .gz, -gz, .z, -z, or _z (ignoring case) and
which begins with the correct magic number with an uncompressed file
without the original extension. gunzip also recognizes the special
extensions .tgz and .taz as shorthands for .tar.gz and .tar.Z
respectively.
gunzip has a --force option to allow it to operate even in cases where
it wouldn't:
-f --force
Force compression or decompression even if the file has multiple
links or the corresponding file already exists, or if the compressed
data is read from or written to a terminal. If the input data is not
in a format recognized by gzip, and if the option --stdout is also
given, copy the input data without change to the standard output: let
zcat behave as cat. If -f is not given, and when not running in the
background, gzip prompts to verify whether an existing file should be
overwritten.
However, this doesn't include cases where a gzip extension is missing.
Please either extend -f to allow that, or introduce a new option to
force decompression of files simply missing a gzip extension.
Meanwhile, zforce can be used to give problematic files the needed
extension:
$ gunzip -f 2012031*
gzip: 20120312100001.txt: unknown suffix -- ignored
gzip: 20120312220001.txt: unknown suffix -- ignored
gzip: 20120313100001.txt: unknown suffix -- ignored
gzip: 20120313220001.txt: unknown suffix -- ignored
chealer@vinci:/tmp$ zforce 2012031*
20120312100001.txt -- replaced with 20120312100001.txt.gz
20120312220001.txt -- replaced with 20120312220001.txt.gz
20120313100001.txt -- replaced with 20120313100001.txt.gz
20120313220001.txt -- replaced with 20120313220001.txt.gz
chealer@vinci:/tmp$ gunzip 2012031*
chealer@vinci:/tmp$
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]