No. Look to see what your specific shell has for such things. On many
systems, "which" is an external command, which necessarily lacks information
about your shell's internal state. I think every shell with aliasing has
a way to show the aliases.
-s
--
Copyright 2009, all wrongs reversed. Peter Seebach / usenet...@seebs.net
http://www.seebs.net/log/ <-- lawsuits, religion, and funny pictures
http://en.wikipedia.org/wiki/Fair_Game_(Scientology) <-- get educated!
On Solaris, do:
file `which which`
Mine says it's a csh script.
On OSX, do:
file $(which which)
Mine says it's a Mach-O universal binary.
In any case, on most systems, just enter:
alias
-or-
alias yourAlias
Use 'type', not 'which'.
--
Chris F.A. Johnson, author <http://shell.cfajohnson,com/>
===================================================================
Shell Scripting Recipes: A Problem-Solution Approach (2005, Apress)
Pro Bash Programming: Scripting the GNU/Linux Shell (2009, Apress)
With bash: type -a some_command
--
Glenn Jackman
Write a wise saying and your name will live forever. -- Anonymous