summaryrefslogtreecommitdiffstats
path: root/tests/expected/getopt
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 13:14:44 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 13:14:44 +0000
commit30ff6afe596eddafacf22b1a5b2d1a3d6254ea15 (patch)
tree9b788335f92174baf7ee18f03ca8330b8c19ce2b /tests/expected/getopt
parentInitial commit. (diff)
downloadutil-linux-30ff6afe596eddafacf22b1a5b2d1a3d6254ea15.tar.xz
util-linux-30ff6afe596eddafacf22b1a5b2d1a3d6254ea15.zip
Adding upstream version 2.36.1.upstream/2.36.1upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--tests/expected/getopt/basic9
-rw-r--r--tests/expected/getopt/basic.err0
-rw-r--r--tests/expected/getopt/options-alternative_option_clash2
-rw-r--r--tests/expected/getopt/options-alternative_option_clash.err0
-rw-r--r--tests/expected/getopt/options-alternative_option_long2
-rw-r--r--tests/expected/getopt/options-alternative_option_long.err0
-rw-r--r--tests/expected/getopt/options-alternative_option_short2
-rw-r--r--tests/expected/getopt/options-alternative_option_short.err0
-rw-r--r--tests/expected/getopt/options-compatible3
-rw-r--r--tests/expected/getopt/options-compatible.err2
-rw-r--r--tests/expected/getopt/options-csh2
-rw-r--r--tests/expected/getopt/options-csh.err0
-rw-r--r--tests/expected/getopt/options-invalid_getopt_option1
-rw-r--r--tests/expected/getopt/options-invalid_getopt_option.err2
-rw-r--r--tests/expected/getopt/options-invocation_model_one2
-rw-r--r--tests/expected/getopt/options-invocation_model_one.err0
-rw-r--r--tests/expected/getopt/options-invocation_model_three_as_one2
-rw-r--r--tests/expected/getopt/options-invocation_model_three_as_one.err0
-rw-r--r--tests/expected/getopt/options-invocation_model_two_as_one2
-rw-r--r--tests/expected/getopt/options-invocation_model_two_as_one.err0
-rw-r--r--tests/expected/getopt/options-invocation_without_parameters1
-rw-r--r--tests/expected/getopt/options-invocation_without_parameters.err2
-rw-r--r--tests/expected/getopt/options-long_option_ambiguous_12
-rw-r--r--tests/expected/getopt/options-long_option_ambiguous_1.err1
-rw-r--r--tests/expected/getopt/options-longopts2
-rw-r--r--tests/expected/getopt/options-longopts.err0
-rw-r--r--tests/expected/getopt/options-name_option_long2
-rw-r--r--tests/expected/getopt/options-name_option_long.err2
-rw-r--r--tests/expected/getopt/options-name_option_short2
-rw-r--r--tests/expected/getopt/options-name_option_short.err2
-rw-r--r--tests/expected/getopt/options-no-arguments1
-rw-r--r--tests/expected/getopt/options-no-arguments.err2
-rw-r--r--tests/expected/getopt/options-non-option4
-rw-r--r--tests/expected/getopt/options-non-option.err0
-rw-r--r--tests/expected/getopt/options-posix_correctly4
-rw-r--r--tests/expected/getopt/options-posix_correctly.err0
-rw-r--r--tests/expected/getopt/options-quiet_option_long2
-rw-r--r--tests/expected/getopt/options-quiet_option_long.err0
-rw-r--r--tests/expected/getopt/options-quiet_option_short2
-rw-r--r--tests/expected/getopt/options-quiet_option_short.err0
-rw-r--r--tests/expected/getopt/options-quiet_output_option_long1
-rw-r--r--tests/expected/getopt/options-quiet_output_option_long.err4
-rw-r--r--tests/expected/getopt/options-quiet_output_option_short1
-rw-r--r--tests/expected/getopt/options-quiet_output_option_short.err4
-rw-r--r--tests/expected/getopt/options-same_long_short_options2
-rw-r--r--tests/expected/getopt/options-same_long_short_options.err0
-rw-r--r--tests/expected/getopt/options-sh2
-rw-r--r--tests/expected/getopt/options-sh.err0
-rw-r--r--tests/expected/getopt/options-test_for_enhanced_getopt1
-rw-r--r--tests/expected/getopt/options-test_for_enhanced_getopt.err0
-rw-r--r--tests/expected/getopt/options-unknown_options2
-rw-r--r--tests/expected/getopt/options-unknown_options.err2
-rw-r--r--tests/expected/getopt/options-unquoted_option_bash5
-rw-r--r--tests/expected/getopt/options-unquoted_option_bash.err0
-rw-r--r--tests/expected/getopt/options-unquoted_option_tcsh5
-rw-r--r--tests/expected/getopt/options-unquoted_option_tcsh.err0
-rw-r--r--tests/expected/getopt/options-weird_quoting_bash5
-rw-r--r--tests/expected/getopt/options-weird_quoting_bash.err0
-rw-r--r--tests/expected/getopt/options-weird_quoting_tcsh2
-rw-r--r--tests/expected/getopt/options-weird_quoting_tcsh.err0
-rw-r--r--tests/expected/getopt/options.err0
61 files changed, 98 insertions, 0 deletions
diff --git a/tests/expected/getopt/basic b/tests/expected/getopt/basic
new file mode 100644
index 0000000..c2c90ae
--- /dev/null
+++ b/tests/expected/getopt/basic
@@ -0,0 +1,9 @@
+Option a
+Option b, argument `1'
+Option c, argument `2'
+Option a
+Option b, argument `3'
+Option c, no argument
+Remaining arguments:
+--> `foo'
+--> `bar'
diff --git a/tests/expected/getopt/basic.err b/tests/expected/getopt/basic.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/basic.err
diff --git a/tests/expected/getopt/options-alternative_option_clash b/tests/expected/getopt/options-alternative_option_clash
new file mode 100644
index 0000000..04ae19d
--- /dev/null
+++ b/tests/expected/getopt/options-alternative_option_clash
@@ -0,0 +1,2 @@
+ -a --abcde --abcde -a -c --
+exit value: 0
diff --git a/tests/expected/getopt/options-alternative_option_clash.err b/tests/expected/getopt/options-alternative_option_clash.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-alternative_option_clash.err
diff --git a/tests/expected/getopt/options-alternative_option_long b/tests/expected/getopt/options-alternative_option_long
new file mode 100644
index 0000000..0f5fc19
--- /dev/null
+++ b/tests/expected/getopt/options-alternative_option_long
@@ -0,0 +1,2 @@
+ -a --one --two 'MANDATORY' --three 'OPTIONAL' --
+exit value: 0
diff --git a/tests/expected/getopt/options-alternative_option_long.err b/tests/expected/getopt/options-alternative_option_long.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-alternative_option_long.err
diff --git a/tests/expected/getopt/options-alternative_option_short b/tests/expected/getopt/options-alternative_option_short
new file mode 100644
index 0000000..0f5fc19
--- /dev/null
+++ b/tests/expected/getopt/options-alternative_option_short
@@ -0,0 +1,2 @@
+ -a --one --two 'MANDATORY' --three 'OPTIONAL' --
+exit value: 0
diff --git a/tests/expected/getopt/options-alternative_option_short.err b/tests/expected/getopt/options-alternative_option_short.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-alternative_option_short.err
diff --git a/tests/expected/getopt/options-compatible b/tests/expected/getopt/options-compatible
new file mode 100644
index 0000000..f3df58d
--- /dev/null
+++ b/tests/expected/getopt/options-compatible
@@ -0,0 +1,3 @@
+exit value: 2
+ --
+exit value: 0
diff --git a/tests/expected/getopt/options-compatible.err b/tests/expected/getopt/options-compatible.err
new file mode 100644
index 0000000..d2c01b7
--- /dev/null
+++ b/tests/expected/getopt/options-compatible.err
@@ -0,0 +1,2 @@
+getopt: missing optstring argument
+Try 'getopt --help' for more information.
diff --git a/tests/expected/getopt/options-csh b/tests/expected/getopt/options-csh
new file mode 100644
index 0000000..86e48f4
--- /dev/null
+++ b/tests/expected/getopt/options-csh
@@ -0,0 +1,2 @@
+ -a -b '1' -c '2' --a-long --b-long '3' --c-long '' -- 'foo' 'bar'
+exit value: 0
diff --git a/tests/expected/getopt/options-csh.err b/tests/expected/getopt/options-csh.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-csh.err
diff --git a/tests/expected/getopt/options-invalid_getopt_option b/tests/expected/getopt/options-invalid_getopt_option
new file mode 100644
index 0000000..0af0d83
--- /dev/null
+++ b/tests/expected/getopt/options-invalid_getopt_option
@@ -0,0 +1 @@
+exit value: 2
diff --git a/tests/expected/getopt/options-invalid_getopt_option.err b/tests/expected/getopt/options-invalid_getopt_option.err
new file mode 100644
index 0000000..1eb8821
--- /dev/null
+++ b/tests/expected/getopt/options-invalid_getopt_option.err
@@ -0,0 +1,2 @@
+getopt: invalid option -- 'b'
+Try 'getopt --help' for more information.
diff --git a/tests/expected/getopt/options-invocation_model_one b/tests/expected/getopt/options-invocation_model_one
new file mode 100644
index 0000000..ca4ddca
--- /dev/null
+++ b/tests/expected/getopt/options-invocation_model_one
@@ -0,0 +1,2 @@
+ -b -d -e OPTIONAL1 -f -a -c -ISREQUIRED -g BECOMES THREE ARGUMENTS -- ARG0 ARG1 NOT_OPTIONAL ARG2 ARG3
+exit value: 0
diff --git a/tests/expected/getopt/options-invocation_model_one.err b/tests/expected/getopt/options-invocation_model_one.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-invocation_model_one.err
diff --git a/tests/expected/getopt/options-invocation_model_three_as_one b/tests/expected/getopt/options-invocation_model_three_as_one
new file mode 100644
index 0000000..1d4701f
--- /dev/null
+++ b/tests/expected/getopt/options-invocation_model_three_as_one
@@ -0,0 +1,2 @@
+ -b -d '' -e 'OPTIONAL1' -f '' -a -c '-ISREQUIRED' -g 'BECOMES THREE ARGUMENTS' -- 'ARG0' 'ARG1' 'NOT_OPTIONAL' 'ARG2' 'ARG3'
+exit value: 0
diff --git a/tests/expected/getopt/options-invocation_model_three_as_one.err b/tests/expected/getopt/options-invocation_model_three_as_one.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-invocation_model_three_as_one.err
diff --git a/tests/expected/getopt/options-invocation_model_two_as_one b/tests/expected/getopt/options-invocation_model_two_as_one
new file mode 100644
index 0000000..1d4701f
--- /dev/null
+++ b/tests/expected/getopt/options-invocation_model_two_as_one
@@ -0,0 +1,2 @@
+ -b -d '' -e 'OPTIONAL1' -f '' -a -c '-ISREQUIRED' -g 'BECOMES THREE ARGUMENTS' -- 'ARG0' 'ARG1' 'NOT_OPTIONAL' 'ARG2' 'ARG3'
+exit value: 0
diff --git a/tests/expected/getopt/options-invocation_model_two_as_one.err b/tests/expected/getopt/options-invocation_model_two_as_one.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-invocation_model_two_as_one.err
diff --git a/tests/expected/getopt/options-invocation_without_parameters b/tests/expected/getopt/options-invocation_without_parameters
new file mode 100644
index 0000000..0af0d83
--- /dev/null
+++ b/tests/expected/getopt/options-invocation_without_parameters
@@ -0,0 +1 @@
+exit value: 2
diff --git a/tests/expected/getopt/options-invocation_without_parameters.err b/tests/expected/getopt/options-invocation_without_parameters.err
new file mode 100644
index 0000000..d2c01b7
--- /dev/null
+++ b/tests/expected/getopt/options-invocation_without_parameters.err
@@ -0,0 +1,2 @@
+getopt: missing optstring argument
+Try 'getopt --help' for more information.
diff --git a/tests/expected/getopt/options-long_option_ambiguous_1 b/tests/expected/getopt/options-long_option_ambiguous_1
new file mode 100644
index 0000000..3e1a967
--- /dev/null
+++ b/tests/expected/getopt/options-long_option_ambiguous_1
@@ -0,0 +1,2 @@
+ --
+exit value: 1
diff --git a/tests/expected/getopt/options-long_option_ambiguous_1.err b/tests/expected/getopt/options-long_option_ambiguous_1.err
new file mode 100644
index 0000000..1422799
--- /dev/null
+++ b/tests/expected/getopt/options-long_option_ambiguous_1.err
@@ -0,0 +1 @@
+getopt: option '--long' is ambiguous; possibilities: '--long1' '--long2'
diff --git a/tests/expected/getopt/options-longopts b/tests/expected/getopt/options-longopts
new file mode 100644
index 0000000..8ee9953
--- /dev/null
+++ b/tests/expected/getopt/options-longopts
@@ -0,0 +1,2 @@
+ --long1 --thirdlong 'ARGUMENT' --secondlong 'ARG' --abbreviation 'ABBRARG' -a -- 'EXTRA1'
+exit value: 0
diff --git a/tests/expected/getopt/options-longopts.err b/tests/expected/getopt/options-longopts.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-longopts.err
diff --git a/tests/expected/getopt/options-name_option_long b/tests/expected/getopt/options-name_option_long
new file mode 100644
index 0000000..5538e16
--- /dev/null
+++ b/tests/expected/getopt/options-name_option_long
@@ -0,0 +1,2 @@
+ --long -a --
+exit value: 1
diff --git a/tests/expected/getopt/options-name_option_long.err b/tests/expected/getopt/options-name_option_long.err
new file mode 100644
index 0000000..140ce70
--- /dev/null
+++ b/tests/expected/getopt/options-name_option_long.err
@@ -0,0 +1,2 @@
+THIS_PROGRAM: invalid option -- 'b'
+THIS_PROGRAM: unrecognized option '--whatever'
diff --git a/tests/expected/getopt/options-name_option_short b/tests/expected/getopt/options-name_option_short
new file mode 100644
index 0000000..5538e16
--- /dev/null
+++ b/tests/expected/getopt/options-name_option_short
@@ -0,0 +1,2 @@
+ --long -a --
+exit value: 1
diff --git a/tests/expected/getopt/options-name_option_short.err b/tests/expected/getopt/options-name_option_short.err
new file mode 100644
index 0000000..140ce70
--- /dev/null
+++ b/tests/expected/getopt/options-name_option_short.err
@@ -0,0 +1,2 @@
+THIS_PROGRAM: invalid option -- 'b'
+THIS_PROGRAM: unrecognized option '--whatever'
diff --git a/tests/expected/getopt/options-no-arguments b/tests/expected/getopt/options-no-arguments
new file mode 100644
index 0000000..0af0d83
--- /dev/null
+++ b/tests/expected/getopt/options-no-arguments
@@ -0,0 +1 @@
+exit value: 2
diff --git a/tests/expected/getopt/options-no-arguments.err b/tests/expected/getopt/options-no-arguments.err
new file mode 100644
index 0000000..d2c01b7
--- /dev/null
+++ b/tests/expected/getopt/options-no-arguments.err
@@ -0,0 +1,2 @@
+getopt: missing optstring argument
+Try 'getopt --help' for more information.
diff --git a/tests/expected/getopt/options-non-option b/tests/expected/getopt/options-non-option
new file mode 100644
index 0000000..73f0b65
--- /dev/null
+++ b/tests/expected/getopt/options-non-option
@@ -0,0 +1,4 @@
+ -a 'x' -- 'y' '-b' 'z' 'w'
+ -a 'x' -b 'z' -- 'y' 'w'
+ -a 'x' 'y' -b 'z' 'w' --
+exit value: 0
diff --git a/tests/expected/getopt/options-non-option.err b/tests/expected/getopt/options-non-option.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-non-option.err
diff --git a/tests/expected/getopt/options-posix_correctly b/tests/expected/getopt/options-posix_correctly
new file mode 100644
index 0000000..5b2bc33
--- /dev/null
+++ b/tests/expected/getopt/options-posix_correctly
@@ -0,0 +1,4 @@
+ -a -b '1' -c '2' --a-long --b-long '3' --c-long '' -- 'foo' 'bar' 'xyxxy' '--a-long'
+exit value: 0
+ -a -b '1' -c '2' --a-long --b-long '3' --c-long '' -- 'foo' 'bar' 'xyxxy' '--a-long'
+exit value: 0
diff --git a/tests/expected/getopt/options-posix_correctly.err b/tests/expected/getopt/options-posix_correctly.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-posix_correctly.err
diff --git a/tests/expected/getopt/options-quiet_option_long b/tests/expected/getopt/options-quiet_option_long
new file mode 100644
index 0000000..3e1a967
--- /dev/null
+++ b/tests/expected/getopt/options-quiet_option_long
@@ -0,0 +1,2 @@
+ --
+exit value: 1
diff --git a/tests/expected/getopt/options-quiet_option_long.err b/tests/expected/getopt/options-quiet_option_long.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-quiet_option_long.err
diff --git a/tests/expected/getopt/options-quiet_option_short b/tests/expected/getopt/options-quiet_option_short
new file mode 100644
index 0000000..3e1a967
--- /dev/null
+++ b/tests/expected/getopt/options-quiet_option_short
@@ -0,0 +1,2 @@
+ --
+exit value: 1
diff --git a/tests/expected/getopt/options-quiet_option_short.err b/tests/expected/getopt/options-quiet_option_short.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-quiet_option_short.err
diff --git a/tests/expected/getopt/options-quiet_output_option_long b/tests/expected/getopt/options-quiet_output_option_long
new file mode 100644
index 0000000..9e52cd9
--- /dev/null
+++ b/tests/expected/getopt/options-quiet_output_option_long
@@ -0,0 +1 @@
+exit value: 1
diff --git a/tests/expected/getopt/options-quiet_output_option_long.err b/tests/expected/getopt/options-quiet_output_option_long.err
new file mode 100644
index 0000000..4fd8b0b
--- /dev/null
+++ b/tests/expected/getopt/options-quiet_output_option_long.err
@@ -0,0 +1,4 @@
+getopt: invalid option -- 'c'
+getopt: unrecognized option '--unknown'
+getopt: option '--long' is ambiguous; possibilities: '--long1' '--long2'
+getopt: option requires an argument -- 'b'
diff --git a/tests/expected/getopt/options-quiet_output_option_short b/tests/expected/getopt/options-quiet_output_option_short
new file mode 100644
index 0000000..9e52cd9
--- /dev/null
+++ b/tests/expected/getopt/options-quiet_output_option_short
@@ -0,0 +1 @@
+exit value: 1
diff --git a/tests/expected/getopt/options-quiet_output_option_short.err b/tests/expected/getopt/options-quiet_output_option_short.err
new file mode 100644
index 0000000..4fd8b0b
--- /dev/null
+++ b/tests/expected/getopt/options-quiet_output_option_short.err
@@ -0,0 +1,4 @@
+getopt: invalid option -- 'c'
+getopt: unrecognized option '--unknown'
+getopt: option '--long' is ambiguous; possibilities: '--long1' '--long2'
+getopt: option requires an argument -- 'b'
diff --git a/tests/expected/getopt/options-same_long_short_options b/tests/expected/getopt/options-same_long_short_options
new file mode 100644
index 0000000..919d227
--- /dev/null
+++ b/tests/expected/getopt/options-same_long_short_options
@@ -0,0 +1,2 @@
+ -a --a --
+exit value: 0
diff --git a/tests/expected/getopt/options-same_long_short_options.err b/tests/expected/getopt/options-same_long_short_options.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-same_long_short_options.err
diff --git a/tests/expected/getopt/options-sh b/tests/expected/getopt/options-sh
new file mode 100644
index 0000000..86e48f4
--- /dev/null
+++ b/tests/expected/getopt/options-sh
@@ -0,0 +1,2 @@
+ -a -b '1' -c '2' --a-long --b-long '3' --c-long '' -- 'foo' 'bar'
+exit value: 0
diff --git a/tests/expected/getopt/options-sh.err b/tests/expected/getopt/options-sh.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-sh.err
diff --git a/tests/expected/getopt/options-test_for_enhanced_getopt b/tests/expected/getopt/options-test_for_enhanced_getopt
new file mode 100644
index 0000000..539db06
--- /dev/null
+++ b/tests/expected/getopt/options-test_for_enhanced_getopt
@@ -0,0 +1 @@
+exit value: 4
diff --git a/tests/expected/getopt/options-test_for_enhanced_getopt.err b/tests/expected/getopt/options-test_for_enhanced_getopt.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-test_for_enhanced_getopt.err
diff --git a/tests/expected/getopt/options-unknown_options b/tests/expected/getopt/options-unknown_options
new file mode 100644
index 0000000..5538e16
--- /dev/null
+++ b/tests/expected/getopt/options-unknown_options
@@ -0,0 +1,2 @@
+ --long -a --
+exit value: 1
diff --git a/tests/expected/getopt/options-unknown_options.err b/tests/expected/getopt/options-unknown_options.err
new file mode 100644
index 0000000..f8f67fb
--- /dev/null
+++ b/tests/expected/getopt/options-unknown_options.err
@@ -0,0 +1,2 @@
+getopt: invalid option -- 'b'
+getopt: unrecognized option '--whatever'
diff --git a/tests/expected/getopt/options-unquoted_option_bash b/tests/expected/getopt/options-unquoted_option_bash
new file mode 100644
index 0000000..8da362f
--- /dev/null
+++ b/tests/expected/getopt/options-unquoted_option_bash
@@ -0,0 +1,5 @@
+ -a $?!* --long1 "\' -- More
+ than
+one
+line
+exit value: 0
diff --git a/tests/expected/getopt/options-unquoted_option_bash.err b/tests/expected/getopt/options-unquoted_option_bash.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-unquoted_option_bash.err
diff --git a/tests/expected/getopt/options-unquoted_option_tcsh b/tests/expected/getopt/options-unquoted_option_tcsh
new file mode 100644
index 0000000..8da362f
--- /dev/null
+++ b/tests/expected/getopt/options-unquoted_option_tcsh
@@ -0,0 +1,5 @@
+ -a $?!* --long1 "\' -- More
+ than
+one
+line
+exit value: 0
diff --git a/tests/expected/getopt/options-unquoted_option_tcsh.err b/tests/expected/getopt/options-unquoted_option_tcsh.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-unquoted_option_tcsh.err
diff --git a/tests/expected/getopt/options-weird_quoting_bash b/tests/expected/getopt/options-weird_quoting_bash
new file mode 100644
index 0000000..db871ce
--- /dev/null
+++ b/tests/expected/getopt/options-weird_quoting_bash
@@ -0,0 +1,5 @@
+ -a '$?!* ' --long1 '"\'\''' -- 'More
+ than
+one
+line'
+exit value: 0
diff --git a/tests/expected/getopt/options-weird_quoting_bash.err b/tests/expected/getopt/options-weird_quoting_bash.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-weird_quoting_bash.err
diff --git a/tests/expected/getopt/options-weird_quoting_tcsh b/tests/expected/getopt/options-weird_quoting_tcsh
new file mode 100644
index 0000000..9e5b71d
--- /dev/null
+++ b/tests/expected/getopt/options-weird_quoting_tcsh
@@ -0,0 +1,2 @@
+ -a '$?'\!'*'\ '' --long1 '"\\'\''' -- 'More\n'\ 'than\none\nline'
+exit value: 0
diff --git a/tests/expected/getopt/options-weird_quoting_tcsh.err b/tests/expected/getopt/options-weird_quoting_tcsh.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options-weird_quoting_tcsh.err
diff --git a/tests/expected/getopt/options.err b/tests/expected/getopt/options.err
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/tests/expected/getopt/options.err