summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgor Murzov <e-mail@date.by>2012-01-10 03:48:15 +0400
committerIgor Murzov <e-mail@date.by>2012-01-10 03:50:00 +0400
commit2e975278c59de9ab6caa5ace65de4b49c6678e65 (patch)
treeb631b66b5d738c89ffc56f196a70bb033f685eaf
parentb515b0dd38158d990be1315db3f8d98f4cb39115 (diff)
downloadbash-completion-2e975278c59de9ab6caa5ace65de4b49c6678e65.tar.gz
_command_offset: Properly quote arguments of eval (Alioth: #313499).
-rw-r--r--bash_completion2
1 files changed, 1 insertions, 1 deletions
diff --git a/bash_completion b/bash_completion
index e3ff95f1..ef79f0ab 100644
--- a/bash_completion
+++ b/bash_completion
@@ -1712,7 +1712,7 @@ _command_offset()
else
cspec=${cspec#complete}
cspec=${cspec%%$compcmd}
- COMPREPLY=( $( eval compgen "$cspec" -- "$cur" ) )
+ COMPREPLY=( $( eval compgen "$cspec" -- '$cur' ) )
fi
elif [[ ${#COMPREPLY[@]} -eq 0 ]]; then
# XXX will probably never happen as long as completion loader loads