We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 24bd420 commit c07bd66Copy full SHA for c07bd66
bash_completion
@@ -863,7 +863,16 @@ if ((BASH_VERSINFO[0] > 5 || BASH_VERSINFO[0] == 5 && BASH_VERSINFO[1] >= 3)); t
863
[[ $_dir ]] && command cd -- "$_original_pwd"
864
865
((${#_upvars[@]})) && _comp_unlocal "${_upvars[@]}"
866
- ((${#_result[@]})) || return
+
867
+ # workaround for bash-4.2 nounset
868
+ ((${#_result[@]})) || {
869
+ if [[ $_append ]]; then
870
+ eval -- "$_var+=()"
871
+ else
872
+ eval -- "$_var=()"
873
+ fi
874
+ return
875
+ }
876
877
if [[ $_prefix ]]; then
878
local _i
0 commit comments