Skip to content

Commit

Permalink
fix(bash): nounset unbound file filter variable on empty extension (#…
Browse files Browse the repository at this point in the history
…2228)

Happens at least if a flag is marked as filename, with "" given as
extensions.
  • Loading branch information
scop authored Feb 2, 2025
1 parent 41b26ec commit 4ba5566
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bash_completionsV2.go
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ __%[1]s_process_completion_results() {
if (((directive & shellCompDirectiveFilterFileExt) != 0)); then
# File extension filtering
local fullFilter filter filteringCmd
local fullFilter="" filter filteringCmd
# Do not use quotes around the $completions variable or else newline
# characters will be kept.
Expand Down

0 comments on commit 4ba5566

Please sign in to comment.