![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /proc/1544360/cwd/usr/share/doc/perl-Module-Build/contrib/ |
# Module::Build Bash completion function # Contributed by Julian Mehnle <[email protected]> # $Id$ # vim:syn=sh if actions=$( perl -M'Module::Build' -le 'print foreach Module::Build->known_actions' 2>/dev/null ) && properties=$( perl -M'Module::Build' -le 'print foreach sort Module::Build->valid_properties' 2>/dev/null ) then eval "_Build_actions () { echo '$actions'; }" eval "_Build_properties () { echo '$properties'; }" unset -v actions properties _Build () { local word=${COMP_WORDS[COMP_CWORD]} #local prev_word=${COMP_WORDS[COMP_CWORD-1]} #local action=${COMP_WORDS[1]} if (( $COMP_CWORD == 1 )); then # Complete actions: local IFS_org="$IFS" IFS=$'\x1F\t\n' # Avoid space (\x20) as a word separator to make the following -S ' ' work. COMPREPLY=($( compgen -W "$(_Build_actions)" -S ' ' -- "$word" )) IFS="$IFS_org" else # Complete properties: COMPREPLY=($( compgen -W "$(_Build_properties)" -S = -- "$word" )) fi return 0 } complete -o nospace -F _Build Build fi