.functions: Don't leak our working variable

This commit is contained in:
Salt 2018-11-06 18:24:52 -06:00
parent e7552dd682
commit 720640c03b

View File

@ -43,6 +43,7 @@ _proj() {
reply="${reply//[^ a-zA-Z0-9.]/}" reply="${reply//[^ a-zA-Z0-9.]/}"
COMPREPLY+=" $reply" COMPREPLY+=" $reply"
done done
unset reply
COMPREPLY=($(compgen -W "$COMPREPLY" "${COMP_WORDS[COMP_CWORD]}")) COMPREPLY=($(compgen -W "$COMPREPLY" "${COMP_WORDS[COMP_CWORD]}"))
return 0 return 0
} }