Executable confusion!

Alan Dayley alandd at consultpros.com
Tue Oct 4 21:56:24 MST 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Colin Rasor wrote:
> Alan,
> 
> which will only report the first file matching the expression in $PATH. The
> first matched is in the order listed in $PATH. To verify this echo $PATH and
> check which directories are listed first. Then execute find or locate with
> an expression that matches bin for your pilot-xfer program.

Thank you, Colin.

/usr/local/bin, where the new pilot-xfer is located, comes before
/usr/bin, where the old pilot-xfer is located.  Yet when I don't specify
the full path for the command, the /usr/bin version is executed.

I'm still confused.  Shouldn't the $PATH specify the order in which
commands are searched for?  There must be some other shell configuration
that redirects to /usr/bin first.

Alan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.7 (GNU/Linux)

iD8DBQFDQ1z3DQw/VSQuFZYRAuGSAJ9PINKsrTB8Rg0AgQ9S8+Q2Pm4v1ACcDMeC
Trzc4+WYnZcBjLJP3OPjwgA=
=CqBU
-----END PGP SIGNATURE-----


More information about the PLUG-discuss mailing list