summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCrestez Dan Leonard <cdleonard@gmail.com>2010-02-04 19:18:14 +0200
committerCrestez Dan Leonard <cdleonard@gmail.com>2010-02-04 19:18:14 +0200
commitb493869b8d4e5b2a1715d15c86dd3a3a01739299 (patch)
tree36177b4c46ee47c8971991093b3102dc2708d6d0
parentbfb55ddf32421ea0b0d7feb16006462b51a1a909 (diff)
downloadbash-completion-b493869b8d4e5b2a1715d15c86dd3a3a01739299.tar.gz
_reply_compgen_array: Fix leaking to environment
-rw-r--r--contrib/mount2
1 files changed, 1 insertions, 1 deletions
diff --git a/contrib/mount b/contrib/mount
index b581bc27..41afb07d 100644
--- a/contrib/mount
+++ b/contrib/mount
@@ -17,7 +17,7 @@ _reply_compgen_array()
# 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
# argument.
- local wlist
+ local i wlist
for i in ${!COMPREPLY[*]}; do
local q=`printf %q "${COMPREPLY[$i]}"`
wlist+=$(quote "$q")$'\n'