[wplug] PATH problem with Bash

Jonathan S. Billings wbanguna at gmail.com
Wed Mar 19 05:52:20 EST 2008


On Wed, Mar 19, 2008 at 12:15:10AM -0400, Zach wrote:
> I am trying to include $HOME/bin in my PATH in bash yet it doesn't work.
> 
> In my .bashrc I have:
> 
> # set PATH so it includes user's private bin if it exists
> if [ -d ~/bin ] ; then
>     PATH=~/bin:"${PATH}"
> fi

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.

-- 
Jonathan Billings <wbanguna at gmail.com>


More information about the wplug mailing list