diff options
Diffstat (limited to 'tests/test/script/runner/set.testscript')
-rw-r--r-- | tests/test/script/runner/set.testscript | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/tests/test/script/runner/set.testscript b/tests/test/script/runner/set.testscript index 28d6686..edbff3e 100644 --- a/tests/test/script/runner/set.testscript +++ b/tests/test/script/runner/set.testscript @@ -40,6 +40,24 @@ EOE } +: options +: +{ + : unknown + : + $c <'set -u' && $b 2>>EOE != 0 + testscript:1:1: error: set: unknown option '-u' + info: test id: 1 + EOE + + : both-newline-whitespace + : + $c <'set -nw' && $b 2>>EOE != 0 + testscript:1:1: error: both -n|--newline and -w|--whitespace specified + info: test id: 1 + EOE +} + : arguments : { |