[Bash-completion-devel] complete empty command example?

Stephen Hemminger shemminger at vyatta.com
Mon Nov 29 18:39:07 UTC 2010


Does anyone have a working example of the new completion of
empty command. I tried simplistic experiment and it didn't work.


declare -a _commands=($( ls $HOME/bin))
_empty()
{
    COMPREPLY=($( compgen -W "${_commands[*]}" ))
}

complete -E _empty




More information about the Bash-completion-devel mailing list