diff options
author | Rob Landley <rob@landley.net> | 2020-05-29 00:28:47 -0500 |
---|---|---|
committer | Rob Landley <rob@landley.net> | 2020-05-29 00:28:47 -0500 |
commit | 8098f58af16c3a8f71c40bdba3da7cd27fa353f2 (patch) | |
tree | c0ee18d41eb13af2202abc67302666a29838d6de | |
parent | 5c33e6c34d383609c1e75a08c671e088006e4a45 (diff) | |
download | toybox-8098f58af16c3a8f71c40bdba3da7cd27fa353f2.tar.gz |
Add tests for sed -s
-rwxr-xr-x | tests/sed.test | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/sed.test b/tests/sed.test index 613330d3..dfb8e884 100755 --- a/tests/sed.test +++ b/tests/sed.test @@ -158,6 +158,9 @@ testing "range +0" "sed -ne '/blah/,+0p'" "blah\n" "" \ testing "range +3" "sed -ne '2,+3p'" "2\n3\n4\n5\n" "" \ "1\n2\n3\n4\n5\nblah\n6\n7\n8\n9\n" +testing "not -s" "sed -n 1p input -" "one" "one" "two" +testing "-s" "sed -sn 1p input -" "one\ntwo" "one\n" "two" + #echo meep | sed/sed -e '1a\' -e 'huh' #echo blah | sed/sed -f <(echo -e "1a\\\\\nboom") #echo merp | sed/sed "1a\\ |