Date: Tue, 05 Apr 2016 16:27:07 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 208554] usr.bin/sed :sed functions 'i' and 'a' discard leading white space Message-ID: <bug-208554-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D208554 Bug ID: 208554 Summary: usr.bin/sed :sed functions 'i' and 'a' discard leading white space Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: freebsd-bugs@FreeBSD.org Reporter: pfg@FreeBSD.org Created attachment 169011 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D169011&action= =3Dedit Patch from NetBSD sed functions 'a' and 'i' discard leading white space of the inserted/appen= ded line(s) of text. This comes from NetBSD's PR/49872 I have confirmed their test on FreeBSD: (old sed) pfg@gorilon:~/test % echo | sed -f test.sed | vis -l test 2 \$ \$ test 1 \$ pfg@gorilon:~/test % vis -l < test.sed a\134\$ test 1 \$ i\134\$ test 2 \$ \$ (new sed) pfg@gorilon:~/test % echo | sed -f test.sed | vis -l test 2 \$ \$ test 1 \$ ______ New behavior would be similar to GNU sed. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-208554-8>