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
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
|
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
Tuesday, 07 July 2009, 13:56 GMT
Reason for closing: Duplicate
Additional comments about closing:
FS#15330was just moved to core.$ grep -w test123 test{1,2,3}
test1:test123
test2:test123
test3:test123
FS#15330. Closing as a duplicate - reopen this bug if necessary.