File tree Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Expand file tree Collapse file tree 3 files changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -25,9 +25,9 @@ _configure()
2525 return
2626 fi
2727
28- # if $COMP_CONFIGURE_HINTS is not null, then completions of the form
29- # --option=SETTING will include 'SETTING' as a contextual hint
30- if [[ ${COMP_CONFIGURE_HINTS-} ]]; then
28+ # if $BASH_COMPLETION_CMD_CONFIGURE_HINTS is not null, then completions of
29+ # the form --option=SETTING will include 'SETTING' as a contextual hint
30+ if [[ ${BASH_COMPLETION_CMD_CONFIGURE_HINTS- ${ COMP_CONFIGURE_HINTS-} } ]]; then
3131 COMPREPLY=($( compgen -W " $( $1 --help 2>&1 |
3232 awk ' /^ --[A-Za-z]/ { print $1; \
3333 if ($2 ~ /--[A-Za-z]/) print $2 }' | command sed -e ' s/[[,].*//g' ) " \
Original file line number Diff line number Diff line change 2222 loaded. If unset or null, the default compatibility directory to use is
2323 `/etc/bash_completion.d`.
2424
25- *COMP_CONFIGURE_HINTS *::
25+ *BASH_COMPLETION_CMD_CONFIGURE_HINTS *::
2626 If set and not null, `configure` completion will return the entire option
2727 string (e.g. `--this-option=DESCRIPTION`) so one can see what kind of data
2828 is required and then simply delete the descriptive text and add one's own
Original file line number Diff line number Diff line change @@ -45,6 +45,7 @@ export XDG_DATA_DIRS=/var/empty
4545
4646# Make sure default settings are in effect
4747unset -v \
48+ BASH_COMPLETION_CMD_CONFIGURE_HINTS \
4849 BASH_COMPLETION_CMD_IWCONFIG_SCAN \
4950 BASH_COMPLETION_FILEDIR_FALLBACK \
5051 COMP_CONFIGURE_HINTS \
You can’t perform that action at this time.
0 commit comments