Activity log for bug #274221

Date Who What changed Old value New value Message
2008-09-25 01:46:32 Rusty Russell bug added bug
2008-09-25 01:46:32 Rusty Russell bug added attachment 'pid.c' (File where grep shows bug)
2008-09-25 06:03:43 Jean-Baptiste Lallement grep: status New Incomplete
2008-09-25 06:03:43 Jean-Baptiste Lallement grep: statusexplanation Thanks for your report. This is reproducible in Intrepid. I suspect that this is one of those multibyte bugs of grep. Does it work correctly with the following command: LANG=C grep -w alloca kernel/pid.c Can you post the output of the command : locale Thanks in advance.
2008-09-25 09:41:19 Jean-Baptiste Lallement grep: status Incomplete Confirmed
2008-09-25 09:41:19 Jean-Baptiste Lallement grep: statusexplanation Thanks for your report. This is reproducible in Intrepid. I suspect that this is one of those multibyte bugs of grep. Does it work correctly with the following command: LANG=C grep -w alloca kernel/pid.c Can you post the output of the command : locale Thanks in advance. Thanks for confirming. We'll take a look.
2008-09-25 09:42:28 Jean-Baptiste Lallement description Binary package hint: grep 1) rusty@vivaldi:~$ lsb_release -rd Description: Ubuntu 8.04.1 Release: 8.04 2) rusty@vivaldi:~$ apt-cache policy grep grep: Installed: 2.5.3~dfsg-3 Candidate: 2.5.3~dfsg-3 Version table: *** 2.5.3~dfsg-3 0 500 http://au.archive.ubuntu.com hardy/main Packages 100 /var/lib/dpkg/status 3) Only whole words returned. There were a couple of spurious results in a large grep. Example file (from Linux kernel) is enclosed, and as you can see, piping through same grep expression again "fixes" the problem. 4) rusty@vivaldi:~$ grep -w alloca devel/kernel/linux-2.6/kernel/pid.c * Generic pidhash and scalable, time-bounded PID allocator rusty@vivaldi:~$ grep -w alloca devel/kernel/linux-2.6/kernel/pid.c | grep -w alloca rusty@vivaldi:~$ Binary package hint: grep 1) rusty@vivaldi:~$ lsb_release -rd Description: Ubuntu 8.04.1 Release: 8.04 2) rusty@vivaldi:~$ apt-cache policy grep grep: Installed: 2.5.3~dfsg-3 Candidate: 2.5.3~dfsg-3 Version table: *** 2.5.3~dfsg-3 0 500 http://au.archive.ubuntu.com hardy/main Packages 100 /var/lib/dpkg/status 3) Only whole words returned. There were a couple of spurious results in a large grep. Example file (from Linux kernel) is enclosed, and as you can see, piping through same grep expression again "fixes" the problem. 4) rusty@vivaldi:~$ grep -w alloca devel/kernel/linux-2.6/kernel/pid.c * Generic pidhash and scalable, time-bounded PID allocator rusty@vivaldi:~$ grep -w alloca devel/kernel/linux-2.6/kernel/pid.c | grep -w alloca rusty@vivaldi:~$
2008-09-25 09:42:28 Jean-Baptiste Lallement title grep -w doesn't always grab whole words grep -w doesn't always grab whole words - broken multibyte support
2008-10-04 20:50:27 Jean-Baptiste Lallement bug assigned to grep
2015-11-15 03:00:53 jose removed subscriber jose