Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'showalias for Korn Shells' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
showalias for Korn Shells
Authored by: pzwack on Aug 26, '02 04:05:21AM

If the alias doesn't work for you, you may be using one of the "other" shells around, like ksh, zsh or bash (new in Jaguar).
Those don't allow arguments to aliases, use functions instead:

# showalias: to remind yourself of an alias (given some part of it)
showalias() { grep ${1:-showalias} ~/.alias }

If you don't give an argument, the showalias lines themselves are shown.



[ Reply to This | # ]