GNU bug report logs - #42402
Enhancement request re zcat with empty files

Previous Next

Package: gzip;

Reported by: Peter Horn <peter.horn <at> bigpond.com>

Date: Fri, 17 Jul 2020 04:37:02 UTC

Severity: wishlist

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


Message #13 received at 42402-done <at> debbugs.gnu.org (full text, mbox):

From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Peter Horn <peter.horn <at> bigpond.com>
Cc: 42402-done <at> debbugs.gnu.org
Subject: Re: Enhancement request re zcat with empty files
Date: Wed, 6 Apr 2022 17:08:17 -0700
> I am asking for an enhancement to zcat, that it should silently ignore 
> empty files, either always, or (if that conflicts with POSIX or some 
> other standard), by a command line option.

zcat -f does what you're asking for. For example:

$ touch empty
$ echo something | gzip >abc.gz
$ zcat -f *
something

Since the -f option satisfies your request I'll close the bug report.




This bug report was last modified 3 years and 96 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.