[Bash-completion-commits] [bash-completion] 03/03: _parse_help: Fix failglob failures (Alioth: #314707)
Igor Murzov
garik-guest at moszumanska.debian.org
Sun Jun 8 21:50:45 UTC 2014
This is an automated email from the git hooks/post-receive script.
garik-guest pushed a commit to branch master
in repository bash-completion.
commit d238ab5445627b6fd9888507d1b7545bb20408a7
Author: Damien Nadé <alioth at livna.org>
Date: Mon Jun 2 20:12:00 2014 +0200
_parse_help: Fix failglob failures (Alioth: #314707)
---
bash_completion | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/bash_completion b/bash_completion
index dc62ec4..59b4908 100644
--- a/bash_completion
+++ b/bash_completion
@@ -742,8 +742,10 @@ __parse_options()
# Take first found long option, or first one (short) if not found.
option=
- for i in $1; do
- case $i in
+ local -a array
+ read -a array <<<"$1"
+ for i in "${array[@]}"; do
+ case "$i" in
---*) break ;;
--?*) option=$i ; break ;;
-?*) [[ $option ]] || option=$i ;;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git
More information about the Bash-completion-commits
mailing list