summaryrefslogtreecommitdiff
path: root/completions/configure
diff options
context:
space:
mode:
authorGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
committerGabriel F. T. Gomes <gabriel@inconstante.eti.br>2017-09-25 23:46:54 -0300
commit6d88f1055806932d9291f96847d2b691cccda2cd (patch)
tree0ff79eedaa8a239331256048981deedbd0721965 /completions/configure
parent059a87a5936cfebfd2d71ab8057002cafb2ea051 (diff)
downloadbash-completion-6d88f1055806932d9291f96847d2b691cccda2cd.tar.gz
New upstream version 2.7upstream/2.7
Diffstat (limited to 'completions/configure')
-rw-r--r--completions/configure8
1 files changed, 4 insertions, 4 deletions
diff --git a/completions/configure b/completions/configure
index 2337c497..0e37726b 100644
--- a/completions/configure
+++ b/completions/configure
@@ -20,16 +20,16 @@ _configure()
;;
esac
- $split && return 0
+ $split && return
# if $COMP_CONFIGURE_HINTS is not null, then completions of the form
# --option=SETTING will include 'SETTING' as a contextual hint
- [[ "$cur" != -* ]] && return 0
+ [[ "$cur" != -* ]] && return
if [[ -n $COMP_CONFIGURE_HINTS ]]; then
COMPREPLY=( $( compgen -W "$( $1 --help 2>&1 | \
awk '/^ --[A-Za-z]/ { print $1; \
- if ($2 ~ /--[A-Za-z]/) print $2 }' | sed -e 's/[[,].*//g' )" \
+ if ($2 ~ /--[A-Za-z]/) print $2 }' | command sed -e 's/[[,].*//g' )" \
-- "$cur" ) )
[[ $COMPREPLY == *=* ]] && compopt -o nospace
else
@@ -39,4 +39,4 @@ _configure()
} &&
complete -F _configure configure
-# ex: ts=4 sw=4 et filetype=sh
+# ex: filetype=sh