Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[Bug 213474] sed behaviuor with a/i/c operands.

2 views
Skip to first unread message

bugzilla...@freebsd.org

unread,
Oct 14, 2016, 5:30:11 AM10/14/16
to freebs...@freebsd.org
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: freebs...@FreeBSD.org
Reporter: kp...@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.
_______________________________________________
freebs...@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs...@freebsd.org"
0 new messages