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@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.
_______________________________________________
freebsd-bugs@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"

Reply via email to