https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=95936

Kyle Evans <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Kyle Evans <[email protected]> ---
Hi (delayed response),

This is actually intended behavior. It's not so much that it doesn't correctly
see it, it's that newlines are pattern delimiters, so this is actually broken
into two different patterns: '(', and 'hi)'. To verify, check:

$ printf "hi\nthere" | egrep -o "hi
er"
hi
er
# Correct

This is probably dual purpose:

1. Maintains consistency with file-read patterns (-f)
2. grep is inherently line-oriented, thus making it nonsensical to actually
match on newlines.

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"

Reply via email to