[Toybox] sed {N;N;} cmd test failure

Ashwini Sharma ak.ashwini1981 at gmail.com
Tue Dec 2 23:28:00 PST 2014


Hi Rob,

While testing thru busybox sed tests, it failed at this test case.

# first three lines are deleted; 4th line is matched and printed by "2,3"
and by "4" ranges
testing "sed with N skipping lines past ranges on next cmds" \
  "sed -n '1{N;N;d};1p;2,3p;3p;4p'" \


  "4\n4\n" "" "1\n2\n3\n4\n"

My observation is with single N, this is working fine, but with multiple N
it doesn't give the same results.

Is the toybox behavior right or busybox/GNU's?

Thanks,
Ashwini
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.landley.net/pipermail/toybox-landley.net/attachments/20141203/8a5ba3a7/attachment.htm>


More information about the Toybox mailing list