[prev in list] [next in list] [prev in thread] [next in thread]
List: freebsd-stable
Subject: unexpected grep -o behavior
From: Stefan Ehmann <shoesoft () gmx ! net>
Date: 2016-11-27 20:52:37
Message-ID: b70e8022-d8f8-24ce-f571-40b07c07c6e1 () gmx ! net
[Download RAW message or body]
When I try to match the first character of a line grep also matches all
subsequent characters:
$ echo 123 | grep -o '^.'
1
2
3
Same with bsdgrep.
grep from ports works as expected:
$ echo 123 | /usr/local/bin/grep -o '^.'
1
Tested on 11.0.
Bug 195763 looks related, but I'm not sure it's the same issue.
_______________________________________________
freebsd-stable@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@freebsd.org"
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic