Re: [PATCH] Remove absolute paths from gpg.rc
On Thu, 15 Mar 2007, Christoph Berg wrote:
Re: Thomas Dickey 2007-03-15 <20070315125305.M74620@xxxxxxxxxxxxxxx>
The reason for the absolute paths is very likely to ensure that it
does not pick up some random program named "gpg". (Making it configurable
from a single point is probably a better way to go).
The proper way to deal with that is not to have "." at the beginning
of $PATH.
As a practical example, I have this on one account:
/export/home/dickey/bin
/usr/bin
/bin
/usr/sbin
/sbin
/usr/local/bin
/usr/openwin/bin
/usr/local/bin
/opt/sfw/bin
/usr/ucb
/usr/local/sbin
/etc/mail
./
/usr/sbin
/usr/bin
/usr/ccs/bin
and 'conflict' (see my webpage - and note that none are from _my_ files):
Current working directory is "/export/home/dickey"
-> /export/home/dickey/bin
--> /usr/bin
---> /usr/sbin
----> /sbin
-----> /usr/local/bin
------> /usr/openwin/bin
-------> /opt/sfw/bin
--------> /usr/ucb
---------> /usr/ccs/bin
-*-----*-: arch
--*+-----: autopush
-*-----+-: basename
-*--*----: bash
--**-----: bpgetfile
-*----+--: captoinfo
*-----++-: cc
-*-----+-: chown
----*-+--: cjpeg
-*----+*-: clear
-*--+-+--: ctags
-**----+-: df
-*---+---: digestp
----*-+--: djpeg
-**------: dmesg
-*-----+-: du
-*-----+-: echo
-*-----*-: edit
----*-+--: etags
-*----+*-: ex
-*-----+-: expr
--**-----: fdisk
-*-----+-: file
-*---+---: filep
-*---+---: filofaxp
-*-----*-: finger
(it goes on - 133 entries). Unless you're very unusual, there are
conflicting names in your $PATH.
--
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net