aboutsummaryrefslogtreecommitdiff
path: root/tests/sed.test
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2016-01-21 13:04:51 -0600
committerRob Landley <rob@landley.net>2016-01-21 13:04:51 -0600
commit2081ec658cdedc7bc6693c8353874dcaf48e9b1b (patch)
treeff49a8b5eb9d42c79bef03db94a9b5986e57fdb6 /tests/sed.test
parentbe7e9e02c3e21bfaff85f7c41db0ae83d718b7a2 (diff)
downloadtoybox-2081ec658cdedc7bc6693c8353874dcaf48e9b1b.tar.gz
Add a sed test from the posix mailing list.
Diffstat (limited to 'tests/sed.test')
-rwxr-xr-xtests/sed.test4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/sed.test b/tests/sed.test
index 8c5bb5d4..eff2306a 100755
--- a/tests/sed.test
+++ b/tests/sed.test
@@ -132,6 +132,10 @@ hello'" "merp\nhello\n" "" "merp"
testing "" "sed -e '/x/c\' -e 'y'" 'y\n' '' 'x\n'
testing "" "sed -e 's/a[([]*b/X/'" 'X' '' 'a[(b'
+# You have to match the first line of a range in order to activate
+# the range, numeric and ascii work the same way
+testing "skip start of range" "sed -e n -e '1,2s/b/c/'" "a\nb\n" "" "a\nb\n"
+
#echo meep | sed/sed -e '1a\' -e 'huh'
#echo blah | sed/sed -f <(echo -e "1a\\\\\nboom")
#echo merp | sed/sed "1a\\