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:
dimitry 2018-12-11 18:06:00 +01:00
parent 19e6502884
commit 73b8481edf
1 changed files with 3 additions and 3 deletions

View File

@ -363,8 +363,8 @@ function addcompletions()
fi fi
complete -F _lunch lunch complete -F _lunch lunch
complete -F _complete-android-module-names gomod complete -F _complete_android_module_names gomod
complete -F _complete-android-module-names m complete -F _complete_android_module_names m
} }
function choosetype() function choosetype()
@ -1535,7 +1535,7 @@ print module_info[module]['path'][0]" 2>/dev/null)
fi fi
} }
function _complete-android-module-names() { function _complete_android_module_names() {
local word=${COMP_WORDS[COMP_CWORD]} local word=${COMP_WORDS[COMP_CWORD]}
COMPREPLY=( $(allmod | grep -E "^$word") ) COMPREPLY=( $(allmod | grep -E "^$word") )
} }