[X-Unix] The which command lies?

Craig A. Finseth fin at finseth.com
Tue Feb 16 08:05:30 PST 2010


   Am 16.02.2010 um 04:01 schrieb Steve Morris:

   > `which perl` -e 'print "@INC\n";'
   >  perl -e 'print "@INC\n";'

   Is perl now an alias? Try:

     alias perl

   > Instead these commands gave me totally different results indicating two different installations of perl. It turns out that my redirections were working but "which" wasn't seeing them.
	...

Not addressing the exact problem, but the one most likely to arise
next: if you are executing Perl scripts, the path of the Perl
interpreter is normally given in the first line.  This will override
the version of Perl that is in your path.

Craig



More information about the X-Unix mailing list