Whence


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Whence
# 1  
Old 11-12-2014
Whence

whence command used for.

can you please provide the example of whence command.
# 2  
Old 11-12-2014
My system does not even have that command...

Is this homework?
# 3  
Old 11-12-2014
Quote:
Originally Posted by Corona688
My system does not even have that command...
Hi Coroa688,
In a pure Bourne shell type utility does about the same thing as the Korn shell whence utility which does about the same thing as the C shell which utility which does about the same thing as the POSIX command -v utility or command -V utility.

Most POSIX-conforming shells will support at least one of type, whence, or which in addition to command; current ksh versions support all four of them.
# 4  
Old 11-12-2014
Quote:
Originally Posted by Don Cragun
In a pure Bourne shell type utility does about the same thing as the Korn shell whence utility which does about the same thing as the C shell which utility which does about the same thing as the POSIX command -v utility or command -V utility.
Just for the sake of completeness: ... which does about the same as the GNU/Linux whereis command ...

bakunin
This User Gave Thanks to bakunin For This Post:
# 5  
Old 11-13-2014
hi don,

could you please let me know why it is used for?
# 6  
Old 11-13-2014
Not until you answer Corona688's question!

Is this homework?
# 7  
Old 11-13-2014
its not a homework. in my code in few areas whence command was used. I could not able identifiy why it used for ?
 
Login or Register to Ask a Question

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