diff options
Diffstat (limited to 'compat')
-rw-r--r-- | compat/getopt.in | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/compat/getopt.in b/compat/getopt.in index 5621a62..0bcf7b9 100644 --- a/compat/getopt.in +++ b/compat/getopt.in @@ -38,7 +38,8 @@ my @long_opts; # nothing fancy to see here; this script provides minimal compatibility # with the getopt from util-linux until a cross platform binary exists. -if ($opts =~ /^\s*-o ([a-zA-Z:]*)?(\s+--long .*)*/) { +# We silently ignore option -q. +if ($opts =~ /^\s*(?:-q\s+)?-o ([a-zA-Z:]*)?(\s+--long .*)*/) { $short_opts = $1; if ($2) { my $long_opts = $2; |