If a compressed file or stream is provided using the -i parameter, regular errors are reported, but there's no clue that the input should be uncompressed.
A solution may involve reading magic numbers or extensions, although extra care must be taken in the case of reading from stdin.
If a compressed file or stream is provided using the
-i
parameter, regular errors are reported, but there's no clue that the input should be uncompressed.A solution may involve reading magic numbers or extensions, although extra care must be taken in the case of reading from stdin.