Package: grep
Version: 2.5.3~dfsg-3
Severity: normal

Hi,
Sometimes, -w option does not work.

I did not succeed in finding what exactly triggers that bug, but it looks like
it happens when multiple files are grepped, and at least one of those files is
big. I've uploaded a file that triggers the bug, and here is a way to reproduce
it (begin in an empty directory):

$ unset GREP_OPTIONS
$ wget http://www.fdn.fr/~arenevier/debian/grep_bug/libnecko.a
$ echo 300 > test
$ /bin/grep -w 30 *
Fichier binaire libnecko.a concorde
test:300

grep should not find something in "test" file.

if I set LANG to C, problem seems to be fixed.

I've tested stable version of grep (2.5.1.ds2-6), and bug is present in that
version.


arno.


-- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (500, 'unstable')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-2-486
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages grep depends on:
ii  libc6                         2.6.1-5    GNU C Library: Shared libraries

grep recommends no packages.

-- no debconf information



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

Reply via email to