[Bug 5078] New: sed mishandles \`
bugzilla at busybox.net
bugzilla at busybox.net
Wed Apr 11 19:44:30 UTC 2012
https://bugs.busybox.net/show_bug.cgi?id=5078
Summary: sed mishandles \`
Product: Busybox
Version: 1.19.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: minor
Priority: P5
Component: Other
AssignedTo: unassigned at busybox.net
ReportedBy: dubiousjim at gmail.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
BusyBox 1.19.3, built against uClibc 0.9.32, on i686 Linux
The Gnu regex extensions \` and \' work properly in busybox grep:
# printf 'abc\ndef' | grep -oz '\`[a-f].' | od -cAn
a b \0
# printf 'abc\ndef' | grep -oz '.[a-f]\'\' | od -cAn
e f \0
So it looks like uClibc is handling them properly. And \' also seems to work
right with BusyBox sed:
# printf 'abc\ndef' | sed -n 'N; s/.[a-f]\'\''/=&=/gp'; echo
abc
d=ef=
but there's something wrong with sed's handling of \`:
# printf 'abc\ndef' | sed -n 'N; s/\`[a-f]./=&=/gp'; echo
=ab==c
==de=f
Expected output:
=ab=c
def
--
Configure bugmail: https://bugs.busybox.net/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list