gunzip fails to extract data from stdin when the zip holds multiple files
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
gzip (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
There is no good reason for this command to fail:
$ wget --quiet -O - https:/
The output is:
[InternetShortcut]
URL=HOMESITEfre
What's happening is gzip logic has gotten tangled up with the gunzip logic. If gzip receives an input stream, it's sensible that the resulting archive contain just one file. But there's no reason gunzip should not be able to produce multiple files from a zip stream. Note that -c was not given to gunzip, so it should not have the constraints that use of stdout would impose.
The man page is also a problem. The gunzip portion of the aggregated man page makes no statement about how stdin is expected to operate. At a minimum, it should say that a minus ("-") directs gunzip to read from stdin.