From 73b8481edf3801e5c1b796dd5aacb47fd53b7669 Mon Sep 17 00:00:00 2001 From: dimitry Date: Tue, 11 Dec 2018 18:06:00 +0100 Subject: [PATCH] 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 --- envsetup.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/envsetup.sh b/envsetup.sh index a1d6e39c0..561083d38 100644 --- a/envsetup.sh +++ b/envsetup.sh @@ -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") ) }