Bug 6584 - sed: append fail to autoinsert newline
Summary: sed: append fail to autoinsert newline
Status: RESOLVED FIXED
Alias: None
Product: Busybox
Classification: Unclassified
Component: Standard Compliance (show other bugs)
Version: 1.22.x
Hardware: All Linux
: P5 major
Target Milestone: ---
Assignee: unassigned
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-10-23 09:02 UTC by jackie.huang
Modified: 2013-10-30 13:26 UTC (History)
1 user (show)

See Also:
Host:
Target:
Build:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description jackie.huang 2013-10-23 09:02:28 UTC
Problem Description
======================
sed: append fail to autoinsert newline

$ echo -ne "woot" | busybox sed '/woot/a woo'
wootwoo

Expected Behavior
======================
$ echo -ne "woot" | busybox sed '/woot/a woo'
woot
woo

looks like it is a known issue?
in testsuite/sed.tests:
test x"$SKIP_KNOWN_BUGS" = x"" && {
testing "sed append autoinserts newline" "sed -e '/woot/a woo' -" \
        "woot\nwoo\n" "" "woot"
}
Comment 1 Denys Vlasenko 2013-10-30 13:26:14 UTC
Fixed in git today.