I am trying to find a path to some executable from within my program using my @path = `which myprog`;. Running this on my linux box gives me either the correct path (if found) or which: no myprog in ($PATH).
The same program running under Solaris has a different behavior. Apparently, which for some reason tries to source my $HOME/.cshrc file, which has a problem, and therefore @path has the error message from sourcing .cshrc instead of actual path. How can I bypass this behavior? (ie, don't run backticks interactively).
Update Running any command other than 'which' seems to be NOT sourcing $HOME/.cshrc
In reply to backticks problem by gri6507
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |