URL:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14935>
Summary: grep with --color and -e "^abc" foo.txt
Project: grep
Submitted by: None
Submitted on: 火 2005年11月08日 at 18:28
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
_______________________________________________________
Details:
$ grep --version
grep (GNU grep) 2.5.1
$ cat foo.txt
abc_abc_abc_
$ grep -o -e "^abc_" foo.txt
abc_
abc_
abc_
$ grep --color -e "^abc_" foo.txt
abc_abc_abc_
^^^^^^^^^^^^
this is wrong.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=14935>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/