_reply_compgen_array: Fix leaking to environment

This commit is contained in:
Crestez Dan Leonard 2010-02-04 19:18:14 +02:00
parent bfb55ddf32
commit b493869b8d

View File

@ -17,7 +17,7 @@ _reply_compgen_array()
# One round of escape is because we want to reply with escaped arguments. A # One round of escape is because we want to reply with escaped arguments. A
# second round is required because compgen -W will helpfully expand it's # second round is required because compgen -W will helpfully expand it's
# argument. # argument.
local wlist local i wlist
for i in ${!COMPREPLY[*]}; do for i in ${!COMPREPLY[*]}; do
local q=`printf %q "${COMPREPLY[$i]}"` local q=`printf %q "${COMPREPLY[$i]}"`
wlist+=$(quote "$q")$'\n' wlist+=$(quote "$q")$'\n'