This is the mail archive of the cygwin@cygwin.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: PATH troubles


Look one element earlier in the output from echo %PATH%.  Colon (:) is the
separator between elements of $PATH, so you added two directories to $PATH:
'c' and '/temp'.

The '//drive' notation is severely deprecated and scheduled to disappear
next release.  Either mount c:/ to /c (or something similar) or use
/cygdrive/c.
--
Mac :})
** I normally forward private questions to the appropriate mail list. **
Give a hobbit a fish and he eats fish for a day.
Give a hobbit a ring and he eats fish for an age.
----- Original Message -----
From: "Francis Meyvis" <francis.meyvis@sonycom.com>
To: <cygwin@cygwin.com>
Sent: Tuesday, July 17, 2001 05:29
Subject: PATH troubles


> I've a strange problem with PATH variable on w2k and nt4.
> I installed cygwin in c:\cygwin.
>
> I've the following shell script tst.sh (it calls a dos bat shell script
from
> within bash):
> c:\temp\tst.bat
>
> The dos batch script just contains:
> @echo %PATH%
>
> When I invoke the following from within bash shell
> export PATH=$PATH:c:/temp
> echo $PATH
> ./tst.sh
>
> I get as a result
> /usr/local/bin:/usr/bin:/cygdrive/c/Python21/:/usr/bin  ... :c:/temp
> c:\cygwin\usr\local\bin;c:\cygwin\bin .... :c:\cygwin\temp
>
> The first line is from the echo $PATH (notice that I agree on the c:/temp
at
> the end)
> The second is from the bat file.
>
> Why is there a "cygwin" inserted between the drive letter and temp
> directory.
> I do not have this problem when I use //c/temp instead of c:/temp when
> modifying the $PATH variable
>
> Note that c:\cygwin is mounted as / in textmode.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]