aboutsummaryrefslogtreecommitdiff
path: root/shell/hush_test/hush-getopts/getopt_test_libc_bug.right
diff options
context:
space:
mode:
Diffstat (limited to 'shell/hush_test/hush-getopts/getopt_test_libc_bug.right')
-rw-r--r--shell/hush_test/hush-getopts/getopt_test_libc_bug.right26
1 files changed, 26 insertions, 0 deletions
diff --git a/shell/hush_test/hush-getopts/getopt_test_libc_bug.right b/shell/hush_test/hush-getopts/getopt_test_libc_bug.right
new file mode 100644
index 000000000..6694e8f0c
--- /dev/null
+++ b/shell/hush_test/hush-getopts/getopt_test_libc_bug.right
@@ -0,0 +1,26 @@
+*** optstring:'ac' args:-a -b -c -d e
+1 rc:0 var:'a' OPTIND:2 OPTARG:''
+./getopt_test_libc_bug.tests: invalid option -- b
+2 rc:0 var:'?' OPTIND:3 OPTARG:''
+3 rc:0 var:'c' OPTIND:4 OPTARG:''
+./getopt_test_libc_bug.tests: invalid option -- d
+4 rc:0 var:'?' OPTIND:5 OPTARG:''
+5 rc:1 var:'?' OPTIND:5 OPTARG:''
+
+*** optstring:'ac' args:-a -b -c -d e
+1 rc:0 var:'a' OPTIND:2 OPTARG:''
+./getopt_test_libc_bug.tests: invalid option -- b
+2 rc:0 var:'?' OPTIND:3 OPTARG:''
+3 rc:0 var:'c' OPTIND:4 OPTARG:''
+./getopt_test_libc_bug.tests: invalid option -- d
+4 rc:0 var:'?' OPTIND:5 OPTARG:''
+5 rc:1 var:'?' OPTIND:5 OPTARG:''
+
+*** optstring:'ac' args:-a -b -c -d e
+1 rc:0 var:'a' OPTIND:2 OPTARG:''
+./getopt_test_libc_bug.tests: invalid option -- b
+2 rc:0 var:'?' OPTIND:3 OPTARG:''
+3 rc:0 var:'c' OPTIND:4 OPTARG:''
+./getopt_test_libc_bug.tests: invalid option -- d
+4 rc:0 var:'?' OPTIND:5 OPTARG:''
+5 rc:1 var:'?' OPTIND:5 OPTARG:''