1846541 Members
2163 Online
110256 Solutions
New Discussion

Command which

 
HU Wen
Occasional Contributor

Command which

Hello!

I would like to use the command "which", but the system HP-Unix 10.20 tell me "Unmatched ".". Can you tell me what it means? It seems to me that we should set an environnement varaible in .cshrc file?

Thank you!
2 REPLIES 2
RikTytgat
Honored Contributor

Re: Command which

Hi,

Use the command alias and check whether there is an alias for 'which'.

If there is no alias, execute /usr/bin/which which, and if you are getting a which that is not /usr/bin/which, the error is probably there. If this is the case, the order of directories in PATH might have to be changed.

If there is an alias, unalias it.

Bye,
Rik
James R. Ferguson
Acclaimed Contributor

Re: Command which

Hi:

No special variables need to be set to use 'which'. From the man page for 'which':

A diagnostic is given for names that are aliased to more than a single word, or if an executable file with the argument name was not found in the path.

Does this help?

...JRF...