You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
grep: context output omits group separators between files #130
When context output continues into another file, uutils grep does not print a group separator before the first group in that file.
printf'hit\nno\nno\nhit\n'> first
printf'hit\n'> second
grep -n -C0 hit first second
The current uutils output is:
first:1:hit
--
first:4:hit
second:1:hit
GNU grep 3.12 inserts another separator between the files:
first:1:hit
--
first:4:hit
--
second:1:hit
The same difference appears with -r when matches come from two explicitly named directories. All commands exit 0 with empty stderr. GNU also applies --no-group-separator and --group-separator=STRING across file boundaries.
Activity