diff options
Diffstat (limited to 'tests/test/script')
-rw-r--r-- | tests/test/script/builtin/sed.test | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/tests/test/script/builtin/sed.test b/tests/test/script/builtin/sed.test index c0a8172..dbd70c4 100644 --- a/tests/test/script/builtin/sed.test +++ b/tests/test/script/builtin/sed.test @@ -104,7 +104,6 @@ info: stderr: test/1/stderr sed: unexpected argument EOE - } : command @@ -299,6 +298,26 @@ } } +: in-place +: +{ + : no-file + : + $c <"sed -i -e 's/a/b/'" && $b 2>>/EOE != 0 + testscript:1:1: error: sed exit status 1 != 0 + info: stderr: test/1/stderr + sed: -i option specified while reading from stdin + EOE + + : edit + : + $c <<EOI && $b + cat <'foo' >=f; + sed -i -e 's/foo/bar/' f; + cat f >'bar' + EOI +} + : big : : Sed a big file (about 100K) to test that the builtin is asynchronous. |