[sclug] puzzle: including ~/bin in $PATH
John Stumbles
john at stumbles.org.uk
Sun Nov 27 23:33:00 UTC 2005
Keith Edmunds wrote:
> John Stumbles wrote:
>
>> If I do something like `touch foo` after setting PATH (above) it works
>> on the kubuntu machine but not on the sarge machine
>
>
> In what way does it not work on the sarge machine? 'touch' is typically
> /bin/touch, so including or excluding ~/bin should make no difference.
Sorry, I meant if I do something like
# set PATH so it includes user's private bin if it exists
if [ -d ~/bin ] ; then
PATH=~/bin:"${PATH}"
touch foo
fi
to see if bash_profile is being run (it isn't on sarge, it is on kubuntu)
--
John Stumbles
More information about the Sclug
mailing list