[Bug 8251] New: sed not replace the words after Implement "+ N" range end
bugzilla at busybox.net
bugzilla at busybox.net
Sun Aug 2 08:46:40 UTC 2015
https://bugs.busybox.net/show_bug.cgi?id=8251
Summary: sed not replace the words after Implement "+ N" range
end
Product: Busybox
Version: 1.24.x
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Standard Compliance
AssignedTo: unassigned at busybox.net
ReportedBy: taapat at gmail.com
CC: busybox-cvs at busybox.net
Estimated Hours: 0.0
I am using the latest busybox from git. After this commit:
http://git.busybox.net/busybox/commit/?id=63f4d32c9859c1ed341debefddad4b9c0ae944cc
I see strange things when use sed to replace words. Sometimes replace works,
but sometimes not.
For example these replace foo in file test.txt as I expect:
sed -i 's/foo/bar/w' test.txt
sed -i 's/foo/bar-1/w' test.txt
sed -i 's/foo/t/w' test.txt
sed -i 's/foo/technic-1/w' test.txt
sed -i 's/foo/technical/w' test.txt
But these do no replace foo:
sed -i 's/foo/t-1/w' test.txt
sed -i 's/foo/t-2/w' test.txt
sed -i 's/foo/technical-1/w' test.txt
sed -i 's/foo/TemplatesInfoBarTechnical-1/w' test.txt
If I revert implement "+ N" range end commit, words replaces in all cases.
--
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