URL:
<http://savannah.gnu.org/bugs/?27669>
Summary: issue using ^ with -z
Project: grep
Submitted by: jakobi
Submitted on: So 11 Okt 2009 15:12:00 GMT
Category: None
Severity: 3 - Normal
Item Group: None
Status: None
Privacy: Public
Assigned to: None
Open/Closed: Open
Discussion Lock: Any
_______________________________________________________
Details:
Please verify these cases to work both with the _unmodified_ most recent
source:
perl -e '@a=qw/abc def ghi/; foreach(@a){print "$_\n"}' | grep ^def
prints def\n - OK
perl -e '@a=qw/abc def ghi/; foreach(@a){print "$_\0"}' | grep -z ^def
prints NOTHING. FAIL. grep -z -x 'def.*' however works.
This failure is IMHO a critical error, as the -z option is probably
frequently used for backups and system admin scripts.
grep 2.5.3, Ubuntu jaunty amd64 (2.5.3~dfsg-6ubuntu1; the error might be
recently introduced (downstream issue?) as I haven't observed it before)
LANG=en_US.UTF-8, no LC* being set yet.
Thanx,
Peter.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?27669>
_______________________________________________
Nachricht geschickt von/durch Savannah
http://savannah.gnu.org/