diff options
author | millert <> | 2002-12-08 19:25:08 +0000 |
---|---|---|
committer | millert <> | 2002-12-08 19:25:08 +0000 |
commit | d11eb7755cffa6a8796c5922ee06499acfcb120c (patch) | |
tree | eebe590fc3b34b8f07c7a54b6a0805724911a1c7 /src/regress/lib/libc/getopt_long/getopt_long_test.c | |
parent | e2a937d6505165b947df5bec71c8a4f8c66156cc (diff) | |
download | openbsd-d11eb7755cffa6a8796c5922ee06499acfcb120c.tar.gz openbsd-d11eb7755cffa6a8796c5922ee06499acfcb120c.tar.bz2 openbsd-d11eb7755cffa6a8796c5922ee06499acfcb120c.zip |
Test option "-" (BSD extension)
Diffstat (limited to 'src/regress/lib/libc/getopt_long/getopt_long_test.c')
-rw-r--r-- | src/regress/lib/libc/getopt_long/getopt_long_test.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/regress/lib/libc/getopt_long/getopt_long_test.c b/src/regress/lib/libc/getopt_long/getopt_long_test.c index b15613d982..27a2dc4a5f 100644 --- a/src/regress/lib/libc/getopt_long/getopt_long_test.c +++ b/src/regress/lib/libc/getopt_long/getopt_long_test.c | |||
@@ -67,7 +67,7 @@ main(int argc, char **argv) | |||
67 | goggles = 0; | 67 | goggles = 0; |
68 | for (;;) { | 68 | for (;;) { |
69 | idx = -1; | 69 | idx = -1; |
70 | ch = gl(argc, argv, "19bf:i:hW;", longopts, &idx); | 70 | ch = gl(argc, argv, "19bf:i:hW;-", longopts, &idx); |
71 | if (ch == -1) | 71 | if (ch == -1) |
72 | break; | 72 | break; |
73 | switch (ch) { | 73 | switch (ch) { |
@@ -76,6 +76,7 @@ main(int argc, char **argv) | |||
76 | case '9': | 76 | case '9': |
77 | case 'h': | 77 | case 'h': |
78 | case 'b': | 78 | case 'b': |
79 | case '-': | ||
79 | if (idx != -1) { | 80 | if (idx != -1) { |
80 | if (goggles == 42) | 81 | if (goggles == 42) |
81 | printf("option %s, arg %s\n", | 82 | printf("option %s, arg %s\n", |