FS#15427 - grep -w <pat> <file1> <file2> ... concatenates multiple matches to one long line

Attached to Project: Arch Linux
Opened by Juraj Hercek (juhe) - Tuesday, 07 July 2009, 13:35 GMT
Last edited by Allan McRae (Allan) - Tuesday, 07 July 2009, 13:56 GMT
Task Type Bug Report
Category Packages: Core
Status Closed
Assigned To No-one
Architecture i686
Severity High
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
Here is how the bug looks like:

status:0 peter@metod [720] ~/test
% grep -w makeLine **/*.hs
Base.hs:makeLineBase.hs:makeLineChart/Pivot.hs:makeLineChart/Marker.hs:makeLine%
peter@metod [721] ~/test
%

So instead of 4 lines each with a file name followed by the matching line, I got one line with 4 file names followed by the search expression and no new line at the end.

The bug was not there in grep-2.5.3-3-i686.pkg.tar.gz.

Additional info:
* package version(s)
grep-2.5.4-2-i686.pkg.tar.gz
* config and/or log files etc.
N/A (no additional options for grep in environment were set)

Steps to reproduce:
Just run grep -w <pattern> with multiple files.
This task depends upon

Closed by  Allan McRae (Allan)
Tuesday, 07 July 2009, 13:56 GMT
Reason for closing:  Duplicate
Additional comments about closing:   FS#15330 
Comment by xduugu (xduugu) - Tuesday, 07 July 2009, 13:46 GMT
Cannot confirm for grep-2.5.4-3 on i686. A package which fixes  FS#15330  was just moved to core.

$ grep -w test123 test{1,2,3}
test1:test123
test2:test123
test3:test123
Comment by Allan McRae (Allan) - Tuesday, 07 July 2009, 13:56 GMT
Agreed. This does appear to be the same bug as  FS#15330 . Closing as a duplicate - reopen this bug if necessary.

Loading...