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]

PATH troubles


Hoi,

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.
---
Kind regards,
francis meyvis

Sony Software Development Center - Europe
+32 2 724 8 643, Sint StevensWoluwestraat 55, B1130 Brussels, Belgium


--
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]