Package: gzip
Version: 1.3.12-9
Severity: normal
Tags: upstream

The command:
$ gzip -c foo | gzip -l -
produces the following output consistently:
         compressed        uncompressed  ratio uncompressed_name
                 -1                  -1   0.0% stdout

This is not the expected output, as demonstrated by:
$ gzip -c foo > foo.gz
$ gzip -l - < foo.gz
         compressed        uncompressed  ratio uncompressed_name
               2023                5006  60.2% stdout
$ cat foo.gz | gzip -l -
         compressed        uncompressed  ratio uncompressed_name
                 -1                  -1   0.0% stdout

It's clear that this bug only affects piped input into gzip -l. Why piped input
should be handled differently to stdin input is beyond me.

-- System Information:
Debian Release: squeeze/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.29-roman (SMP w/4 CPU cores)
Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages gzip depends on:
ii  libc6                         2.10.2-5   Embedded GNU C Library: Shared lib

gzip recommends no packages.

Versions of packages gzip suggests:
ii  less                          429-2      pager program similar to more

-- no debconf information



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to