aboutsummaryrefslogtreecommitdiff
path: root/util-linux/script.c
diff options
context:
space:
mode:
Diffstat (limited to 'util-linux/script.c')
-rw-r--r--util-linux/script.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/util-linux/script.c b/util-linux/script.c
index 8174c65bf..aac77c3ba 100644
--- a/util-linux/script.c
+++ b/util-linux/script.c
@@ -80,8 +80,10 @@ int script_main(int argc UNUSED_PARAM, char **argv)
;
#endif
- opt_complementary = "?1"; /* max one arg */
- opt = getopt32long(argv, "ac:fqt::", script_longopts, &shell_arg, &str_t);
+ opt = getopt32long(argv, "^" "ac:fqt::" "\0" "?1"/* max one arg */,
+ script_longopts,
+ &shell_arg, &str_t
+ );
//argc -= optind;
argv += optind;
if (argv[0]) {