Skip to content
Myr

fix(bash): nounset unbound file filter variable on empty extension (#2228)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Happens at least if a flag is marked as filename, with "" given as extensions.

authored by Ville Skyttä · committed by GitHub · parent 41b26ec · Browse files · 1 file+1 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−1 removed

  • other:+1 added−1 removed

1 file+1 added−1 removed

modified:bash_completionsV2.go+1 added-1 removed
144 unmodified lines
145 __%[1]s_extract_activeHelp146147 if (((directive & shellCompDirectiveFilterFileExt) != 0)); then148 # File extension filtering149 local fullFilter filter filteringCmd149 local fullFilter="" filter filteringCmd150151 # Do not use quotes around the $completions variable or else newline152 # characters will be kept.153 for filter in ${completions[*]}; do
331 unmodified lines