Package: gzip
Version: 1.3.5-10sarge1
Severity: normal

  if and even number of individual '-e' options given to zfgrep, seems
  to parse them ok as options except for the last one is parsed as a
  file argument 

  example commands:

$ echo TEST1 > test1
$ echo TEST2 > test2
$ cat test1 test2 | gzip -fc > test.gz
$ zfgrep -e 1 test.gz
TEST1
$ zfgrep -e 1 -e 2 test.gz
grep: 2: No such file or directory
$ zfgrep -e 1 -e 2 -e 3 test.gz
$ zfgrep -e 1 -e 2 -e 3 -e 4 test.gz
grep: 4: No such file or directory

  also seems to be treating these as if the '-e's ought to be
  ANDed together ( all required ), which is different than the
  behaviour of underlying grep/fgrep:

$ cat test1 test2 > test
$ grep -e 1 -e 2 test
TEST1
TEST2
$ grep -e 1 -e 2 -e 3 test
TEST1
TEST2
$ fgrep -e 1 -e 2 -e 3 test
TEST1
TEST2

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.6.8-2-xeon
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages gzip depends on:
ii  debianutils                 2.8.4        Miscellaneous utilities specific t
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information


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

Reply via email to