From d326bdc241593b5f6fbc4769c876e72972435ee5 Mon Sep 17 00:00:00 2001 From: Jesse Ayala Date: Wed, 11 Jun 2025 20:17:41 -0400 Subject: [PATCH] Fix error when no matching files in working dir If there are no files in the current working directory, zparse opts complains with "missing argument for option: -g" Co-authored-by: Shohei YOSHIDA --- src/_fail2ban-regex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/_fail2ban-regex b/src/_fail2ban-regex index 2b32343..61f4651 100644 --- a/src/_fail2ban-regex +++ b/src/_fail2ban-regex @@ -44,7 +44,7 @@ _arguments -A "-*" -n \ '--print-all-ignored[print all ignored lines, no matter how many]' \ '(-t --log-traceback)'{-t,--log-traceback}'[enrich log-messages with compressed tracebacks]' \ '--full-traceback[enrich log-messages with full, uncompressed tracebacks]:' \ - '1:file:_files -g *.log' \ + '1:file:_files -g \*.log' \ '2:file:_files -W /etc/fail2ban/filter.d -g \*\.\(conf\|local\)' \ '3:file:_files -W /etc/fail2ban/filter.d -g \*\.\(conf\|local\)'