This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
RE: Add search path to the cygwin.
- To: "'gcc-help at gcc dot gnu dot org'" <gcc-help at gcc dot gnu dot org>
- Subject: RE: Add search path to the cygwin.
- From: David Korn <dkorn at pixelpower dot com>
- Date: Wed, 18 Oct 2000 10:31:28 +0100
>"Fu, Jack" wrote:
>>
>> I tried to add path using $ $PATH=/cygnus/include:$PATH.
>From: mike corbeil ordinary user account [mailto:mcorbeil@NetRevolution.com]
> $PATH=/cygnus/include:$PATH
> export PATH
>
> or
>
> $PATH=$PATH:/cygnus/include
> export PATH
PMFBI, but.... surely you mean
PATH=/cygnus/include:$PATH
export PATH
because if you put that first $ sign there, it expands the path, rather
than treating it as a variable name, so if (for example) your path used to
be /usr/bin:/bin, then what you've just typed to bash (after expansion) is
/usr/bin:/bin=/cygnus/include:/usr/bin:/bin
which of course doesn't make a lot of sense to bash...
hth,
DaveK
--
"The secret of life is honesty and fair dealing. If you can fake that,
you've got it made." -Groucho Marx