Mailinglist Archive: opensuse (3378 mails)

< Previous Next >
Adding to PATH in ~/.alias or ~/.bashrc causes triple additions?
  • From: JW <jw@xxxxxxxxxxxxxxxxxx>
  • Date: Fri, 12 Apr 2002 11:58:03 -0500
  • Message-id: <200204121158.03621.jw@xxxxxxxxxxxxxxxxxx>
Howdy,

I'm pretty sure this used to work on 7.2:

devcp@chrome:~> cat ~/.alias
#umask is important for clickpatrol file permissions
umask 002

PATH=/home/devcp/local/bin:/home/devcp/local/apache/bin:$PATH
export PATH


But look what it's causing now:


Message from iMacCSC at 11:54:00 am:
evcp@chrome:~">devcp@chrome:~> echo $PATH
/home/devcp/local/bin:/home/devcp/local/apache/bin:/home/devcp/local/bin:/home/devcp/local/apache/bin:/home/devcp/local/bin:/home/devcp/local/apache/bin:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/bin:/usr/lib/java/bin:/usr/games/bin:/usr/games:/opt/gnome/bin:/opt/kde2/bin:/opt/kde/bin:.:/opt/gnome/bin

BTW the same thing happens if I stick that in ~/.bashrc, also it doens't matter if I add to the begining or the end of PATH

Why on earth is it prepending the new dirs 3 times?


--

----------------------------------------------------
Jonathan Wilson
System Administrator
Clickpatrol.com
Cedar Creek Software http://www.cedarcreeksoftware.com



< Previous Next >
This Thread
Follow Ups