$functions
–
Mapping of Function Names to Definitions
$functions
maps function names to their definitions.
Adding or removing from this array will change the available functions in the shell environment.
Links
Examples
- Define and Unset a Function
- Output:
1 2 3 4 5 6 7
say() { echo hello world; } # print function definition echo ${functions[say]} # remove function definition unset "functions[say]" # attempt to use unavailable function say
1 2
echo hello world zsh: command not found: say
BashSupport Pro ist eine Zsh IDE mit Unterstützung für $functions - probieren Sie es jetzt aus!