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 40a204e commit 72ddb92Copy full SHA for 72ddb92
completions/ARRAY
@@ -93,10 +93,10 @@ _comp_xfunc_ARRAY_filter()
93
esac
94
;;
95
*)
96
- if declare -F "$2" &>/dev/null; then
+ if type -t "$2" &>/dev/null; then
97
_comp_local_predicate="$2 \"\$_comp_local_value\""
98
else
99
- _comp_local_predicate="local value=\$_comp_local_value; $2"
+ _comp_local_predicate="local -x value=\$_comp_local_value; $2"
100
fi
101
102
0 commit comments