$ help alias
alias: alias [-p] [name[=value] ... ]
`alias' with no arguments or with the -p option prints the list
of aliases...
$ help function
function: function NAME { COMMANDS ; } or NAME () { COMMANDS ; }
Create a simple command invoked by NAME which runs COMMANDS...
How asymmetrical that
$ function
by itself doesn't print out a list of current functions. OK, at least
"help function" should mention how to see current functions.
Just add
Function names and definitions may be listed with the -f
option to the declare or typeset builtin commands. The -F
option to declare or typeset will list the function names
only.
Say, there is also no parallel command to show aliases without their
definitions...
--
http://www.geocities.com/jidanni Tel+886-4-25854780