[wplug] PATH problem with Bash

Gary Morrow gary.morrow at ansys.com
Wed Mar 19 08:35:43 EST 2008


Zach wrote:
> On Wed, Mar 19, 2008 at 6:52 AM, Jonathan S. Billings
>   
>>  If you don't export the $PATH variable, it doesn't get passed on to
>>  subshells.  Try putting 'export ' in front of the PATH in your
>>  addition.
>>     
>
>   

Have you checked to make sure you are actually using bash?

> Hi,
>
> I just tried:
>
> # set PATH so it includes user's private bin if it exists
> if [ -d ${HOME}/bin ] ; then
>     export PATH=${HOME}/bin:"${PATH}"
> fi
>
> But same problem.
>
> I also tried:
>
> # set PATH so it includes user's private bin if it exists
> if [ -d ${HOME}/bin ] ; then
>     PATH=${HOME}/bin:"${PATH}"
> fi
>
> export PATH=/usr/local/java2/bin:/usr/local/bin:/usr/local/contrib/bin:/afs/club.cc.cmu.edu/usr/chaos/bin:"${PATH}"
>
> And:
>
> # set PATH so it includes user's private bin if it exists
> if [ -d ${HOME}/bin ] ; then
>     export PATH=${HOME}/bin:"${PATH}"
> fi
>
> export PATH=/usr/local/java2/bin:/usr/local/bin:/usr/local/contrib/bin:/afs/club.cc.cmu.edu/usr/chaos/bin:"${PATH}"
>
> Zach
> _______________________________________________
> wplug mailing list
> wplug at wplug.org
> http://www.wplug.org/mailman/listinfo/wplug
>
>   



More information about the wplug mailing list