From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <102653649621956.tru64-unix-managers.marc@archive.invalid> From: "Nemholt, Jesper Frank" Date: Tue, 19 Jun 2001 23:15:14 +0000 To: tru64-unix-managers Subject: grep -w bug in 4.x but not in 5.x X-MARC-Message: https://marc.info/?l=tru64-unix-managers&m=102653649621956 Hi! Make a file (test.txt) containing : 3 33 333 3333 Then do a : cat test.txt | grep -w 3 On 4.0F patchkit 4 and 4.0D patchkit something, grep returns all lines. On 5.1 patchkit 3 grep returns only the first line. The same happens on Solaris 7. I believe grep -w in 5.1 and Solaris 7 is behaving correct according to the man description, and wrong on 4.x. Fixed in any patch, or ? /Jesper