Skip to content

Commit 4ba5566

Browse files
authored
fix(bash): nounset unbound file filter variable on empty extension (#2228)
Happens at least if a flag is marked as filename, with "" given as extensions.
1 parent 41b26ec commit 4ba5566

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bash_completionsV2.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ __%[1]s_process_completion_results() {
146146
147147
if (((directive & shellCompDirectiveFilterFileExt) != 0)); then
148148
# File extension filtering
149-
local fullFilter filter filteringCmd
149+
local fullFilter="" filter filteringCmd
150150
151151
# Do not use quotes around the $completions variable or else newline
152152
# characters will be kept.

0 commit comments

Comments
 (0)