diff options
Diffstat (limited to 'testsuite/sed.tests')
-rwxr-xr-x | testsuite/sed.tests | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/testsuite/sed.tests b/testsuite/sed.tests index 2b78c9b12..e62b839f7 100755 --- a/testsuite/sed.tests +++ b/testsuite/sed.tests | |||
@@ -405,6 +405,15 @@ testing "sed ^ OR not^" \ | |||
405 | "" \ | 405 | "" \ |
406 | "abca\n" | 406 | "abca\n" |
407 | 407 | ||
408 | # This only works if file name is exactly the same. | ||
409 | # For example, w FILE; w ./FILE won't work. | ||
410 | testing "sed understands duplicate file name" \ | ||
411 | "sed -n -e '/a/w sed.output' -e '/c/w sed.output' 2>&1 && cat sed.output && rm sed.output" \ | ||
412 | "a\nc\n" \ | ||
413 | "" \ | ||
414 | "a\nb\nc\n" | ||
415 | |||
416 | |||
408 | # testing "description" "commands" "result" "infile" "stdin" | 417 | # testing "description" "commands" "result" "infile" "stdin" |
409 | 418 | ||
410 | exit $FAILCOUNT | 419 | exit $FAILCOUNT |