From 2081ec658cdedc7bc6693c8353874dcaf48e9b1b Mon Sep 17 00:00:00 2001 From: Rob Landley Date: Thu, 21 Jan 2016 13:04:51 -0600 Subject: Add a sed test from the posix mailing list. --- tests/sed.test | 4 ++++ 1 file changed, 4 insertions(+) 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\\ -- cgit v1.2.3