NetBSD-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
bin/49872: sed functions 'i' and 'a' discard leading white space
>Number: 49872
>Category: bin
>Synopsis: sed functions 'i' and 'a' discard leading white space
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: bin-bug-people
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Sun May 03 09:30:00 +0000 2015
>Originator: Yorick Hardy
>Release: NetBSD 7.0_BETA
>Organization:
>Environment:
NetBSD HOME 7.0_BETA NetBSD 7.0_BETA (YORICK.amd64) #0: Fri Apr 24 06:20:00 SAST 2015 root@HOME:/root/build.amd64.local7/obj/sys/arch/amd64/compile/YORICK.amd64 amd64
>Description:
sed functions 'a' and 'i' discard leading white space of the inserted/appended line(s) of text.
If I recall correctly, this was not true in previous releases of NetBSD.
>How-To-Repeat:
Script started on Sun May 3 11:19:58 2015
$ cat << "EOF" > test.sed
> a\
> test 1
> i\
> test 2
> EOF
$ vis -l < test.sed
a\134\$
test 1 \$
i\134\$
test 2 \$
$ echo | sed -f test.sed | vis -l
test 2 \$
\$
test 1 \$
$ D ^D
Script done on Sun May 3 11:20:33 2015
>Fix:
Home |
Main Index |
Thread Index |
Old Index