Whence


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Whence
# 8  
Old 11-13-2014
Quote:
Originally Posted by ramkumar15
its not a homework. in my code in few areas whence command was used. I could not able identifiy why it used for ?
Then i suggest you try it out on the commandline and find out for yourself. Another possibility would be to issue man whence and read what comes up there.

I hope this helps.

bakunin
This User Gave Thanks to bakunin For This Post:
# 9  
Old 11-13-2014
From man ksh:
Code:
       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  option
              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 -p option turns off the -v option.  The -a
              option is similar to the -v option but  causes  all  interpreta‐
              tions of the given name to be reported.

Examples:
Code:
$ whence -v whence
whence is a shell builtin
$ whence -v ksh
ksh is a tracked alias for /usr/bin/ksh
$ whence -v type
type is an alias for 'whence -v'
$

 
Login or Register to Ask a Question

Previous Thread | Next Thread
Login or Register to Ask a Question