From d11eb7755cffa6a8796c5922ee06499acfcb120c Mon Sep 17 00:00:00 2001 From: millert <> Date: Sun, 8 Dec 2002 19:25:08 +0000 Subject: Test option "-" (BSD extension) --- src/regress/lib/libc/getopt_long/getopt_long_test.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/regress/lib/libc/getopt_long/getopt_long_test.c') 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) goggles = 0; for (;;) { idx = -1; - ch = gl(argc, argv, "19bf:i:hW;", longopts, &idx); + ch = gl(argc, argv, "19bf:i:hW;-", longopts, &idx); if (ch == -1) break; switch (ch) { @@ -76,6 +76,7 @@ main(int argc, char **argv) case '9': case 'h': case 'b': + case '-': if (idx != -1) { if (goggles == 42) printf("option %s, arg %s\n", -- cgit v1.2.3-55-g6feb