On Friday, March 03, 2000, Matthew Hunt wrote:
> and the "type" builtin is too verbose, saying "which is hashed
> (/usr/bin/which)."

   In ksh, `whence' is a bit equivalent to `which' (`type' in ksh
is an alias to `whence -v').

   From the AT&T ksh manual:

       whence [ -afpv ] name ...
              For each name, indicate how it would be interpreted
              if used as a command name.
              The  -v option produces a more verbose report.  The
              -f options skips the search for functions.  The  -p
              option  does a path search for name even if name is
              an alias, a function, or a reserved word.   The  -a
              option  is  similar to the -v option but causes all
              interpretations of the given name to be reported.

   Which would yield the following behavior:

$ whence pwd
pwd
$ whence -f pwd
pwd
$ whence -p pwd
/bin/pwd
$ whence -v pwd
pwd is a shell builtin
$ whence -a pwd
pwd is a shell builtin
pwd is a tracked alias for /bin/pwd

-- 
|Chris Costello <[EMAIL PROTECTED]>
|A paperless office has about as much chance as a paperless bathroom.
`--------------------------------------------------------------------


To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-current" in the body of the message

Reply via email to