$commands
–
Command Hash Table
$commands
provides the command hash table.
It’s a mapping of command name to the path of the executable, which would be executed.
Setting and unsetting elements of the array works in the same way as the hash
builtin command.
Links
Examples
- Print the available commands
- Output:
1
declare commands
1
commands=( [virt-login-shell]=/usr/bin/virt-login-shell [yacc]=/usr/bin/yacc )
BashSupport Pro 是一款支持 commands** 的 **Zsh 集成开发环境 - 立即试用!