Bug 6584

Summary: sed: append fail to autoinsert newline
Product: Busybox Reporter: jackie.huang
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: major CC: busybox-cvs
Priority: P5    
Version: 1.22.x   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:

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.