Re: PATH problem...
From: Web Surfer (raisin_at_delete-this-trash.mts.net)
Date: Wed, 28 Apr 2004 09:59:19 -0500
[This followup was posted to linux.redhat]
In article <HITEF465EA27@hitex.co.uk>, firstname.lastname@example.org says...
> I am not sure how to manage correctly the PATH,..
> When you need to add the path, you just write the command lime :
> PATH$=PATH$:/home/.../ (or something like that)
> Now, how can see all the paths that the machine will consider ?
echo $PATH | perl -e 'print join("\n",split(/:/,<STDIN>));'
> 2) if I have 2 different installations of GCC (v 2.9 and v 3.4)
> Is there a way to add the path of one of them and another day, to remove it
> and add the path of the other one ??
You could always create an alias that refers to the specific version
that you want to use and just change the alias whenever you want to use
the other version
> Thanks for your help