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