Rename _complete-android-module-names
A function name with dashes is apparently not universally recognized by shell versions/variants(?). Using underscore in place of dashes solves this problem. Test: ./development/vndk/tools/header-checker/utils/create_reference_dumps.py -l libGLESv1_CM Change-Id: Id7d701600760140dae9e4762a11f4abd64947d10
This commit is contained in:
parent
19e6502884
commit
73b8481edf
1 changed files with 3 additions and 3 deletions
|
@ -363,8 +363,8 @@ function addcompletions()
|
|||
fi
|
||||
complete -F _lunch lunch
|
||||
|
||||
complete -F _complete-android-module-names gomod
|
||||
complete -F _complete-android-module-names m
|
||||
complete -F _complete_android_module_names gomod
|
||||
complete -F _complete_android_module_names m
|
||||
}
|
||||
|
||||
function choosetype()
|
||||
|
@ -1535,7 +1535,7 @@ print module_info[module]['path'][0]" 2>/dev/null)
|
|||
fi
|
||||
}
|
||||
|
||||
function _complete-android-module-names() {
|
||||
function _complete_android_module_names() {
|
||||
local word=${COMP_WORDS[COMP_CWORD]}
|
||||
COMPREPLY=( $(allmod | grep -E "^$word") )
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue