[wplug] PATH problem with Bash

Mackenzie Morgan macoafi at gmail.com
Tue Mar 18 23:19:05 EST 2008


I think you have to actually use ${HOME} not ~

On Wed, Mar 19, 2008 at 12:15 AM, Zach <netrek at gmail.com> 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
>
> Yet when I echo $PATH it only shows:
> /usr/local/bin:/usr/bin:/bin:/usr/bin/X11:/usr/games
>
> I even added it explicitly to the PATH list in my .bashrc but it still
> doesn't show up in $PATH:
>
> 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
>



-- 
Mackenzie Morgan
Linux User #432169
ACM Member #3445683
http://ubuntulinuxtipstricks.blogspot.com <-my blog of Ubuntu stuff
apt-get moo
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.wplug.org/pipermail/wplug/attachments/20080319/9b4c1912/attachment.html


More information about the wplug mailing list