_parse_help: Fix failglob failures (Alioth: #314707)
This commit is contained in:
parent
dcb0ea2ca2
commit
d238ab5445
@ -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 ;;
|
||||
|
Loading…
x
Reference in New Issue
Block a user