aboutsummaryrefslogtreecommitdiff
path: root/tests/test/script/builtin/mkdir.testscript
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test/script/builtin/mkdir.testscript')
-rw-r--r--tests/test/script/builtin/mkdir.testscript8
1 files changed, 7 insertions, 1 deletions
diff --git a/tests/test/script/builtin/mkdir.testscript b/tests/test/script/builtin/mkdir.testscript
index 573f73d..d1a3b4a 100644
--- a/tests/test/script/builtin/mkdir.testscript
+++ b/tests/test/script/builtin/mkdir.testscript
@@ -4,6 +4,12 @@
.include ../common.testscript
+: unknown-option
+:
+$c <<EOI && $b
+mkdir -u 2>"mkdir: unknown option '-u'" == 1
+EOI
+
: dirs
:
$c <<EOI && $b
@@ -28,7 +34,7 @@ $c <'mkdir -p a a a/b a/b' && $b
:
$c <<EOI && $b
mkdir -p -- -p;
-touch -p/a
+touch -- -p/a
EOI
: no-args