testsuite: sed, is sed test item 12345 is a known bug?

macpaul at andestech.com macpaul at andestech.com
Wed Feb 9 03:34:27 UTC 2011


Hi all, 

> 
> Hi all,
> 

I've found the result of executing this script is different from the original testsuite and the single line command.
Executing "echo -ne '1 2 3 4 5\n' | sed -e 's/[[:space:]]*/,/g'" will indeed get correct output as
",1,2,3,4,5"

However, after I replace the test case to 
testing "sed s//g (exhaustive)" "sed -e 's/[[:space:]]*/,/g'" 
        "" "1 2 3 4 5\n"
I still get wrong output as 
",1,2,3,4,5"

I need to replace the test case to 
testing "sed s//g (exhaustive)" "sed -e 's/[[:space:]]*/,/g'" 
        "" "1 2 3 4 5 \n"
then I get the correct output as 
",1,2,3,4,5,"

Best regards,
Macpaul Lin


More information about the busybox mailing list