[Bug 213474] sed behaviuor with a/i/c operands.
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Fri Oct 14 09:30:00 UTC 2016
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=213474
Bug ID: 213474
Summary: sed behaviuor with a/i/c operands.
Product: Base System
Version: 11.0-STABLE
Hardware: Any
OS: Any
Status: New
Severity: Affects Many People
Priority: ---
Component: bin
Assignee: freebsd-bugs at FreeBSD.org
Reporter: kpect at protonmail.com
Hello.
Al of a sudden sed began to act differently on FreeBSD 11
On FreeBSD 11.0 following script (<------> - tab character)
# cat file
SEARCHED_LINE
#!/bin/sh
sed -E -i '.orig' \
<------>-e '/^SEARCHED_LINE/ a\
<------>line1\
line2\
<------>\<------>line3' \
file
performs this output:
SEARCHED_LINE
<------>line1
line2
<------><------>line3
While on FreeBSD 10.3 and previuos versions it performed this:
line1
line2
<------>line3
Why have you changed pretty sane and convenient sed's behaviuor to gsed's one?
My scripts looked very neat and structured with previuos BSD sed.
Do I have to rewrite all my scripts now?
Regards,
Sergey.
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list