** Description changed:
$ printf 'a
b\0b' | grep --null-data "a
b" | hexdump -C
61 0a 62 00 62 00 |a.b.b.|
0006
expect
61 0a 62
+
+ EDIT:
+
+ Apparently, in the above the pattern string is considered as two
+ patterns 'a'
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: grep (Ubuntu)
Status: New => Confirmed
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to grep in Ubuntu.
In awk \n in regex means newline.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to grep in Ubuntu.
https://bugs.launchpad.net/bugs/1641092
Title:
Does not support patterns containing newline
Status in grep package in
** Description changed:
$ printf 'a
- b\0b' | grep --null-data --null "a
+ b\0b' | grep --null-data "a
b" | hexdump -C
61 0a 62 00 62 00 |a.b.b.|
0006
expect
61 0a 62
ProblemType: Bug
DistroRelease: Ubuntu 16.04
4 matches
Mail list logo