| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
| List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
| Sender: | cygwin-owner AT sources DOT redhat DOT com |
| Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
| Date: | Tue, 17 Jul 2001 15:30:09 +0200 |
| From: | Corinna Vinschen <cygwin AT cygwin DOT com> |
| To: | cygwin AT cygwin DOT com |
| Subject: | Re: PATH troubles |
| Message-ID: | <20010717153009.H730@cygbert.vinschen.de> |
| Mail-Followup-To: | cygwin AT cygwin DOT com |
| References: | <001f01c10ebc$1cef2640$1630220a AT sonytel DOT be> |
| Mime-Version: | 1.0 |
| User-Agent: | Mutt/1.2.5i |
| In-Reply-To: | <001f01c10ebc$1cef2640$1630220a@sonytel.be>; from francis.meyvis@sonycom.com on Tue, Jul 17, 2001 at 02:29:24PM +0200 |
On Tue, Jul 17, 2001 at 02:29:24PM +0200, Francis Meyvis wrote:
> 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
^^^^^^^
Don't do this. $PATH inside of Cygwin is POSIX compatible and uses colon
as separator character. So `c:' is treated as a relative path `c' plus
a separator. The next `/temp' is then relative to the Cygwin root dir
obviously.
Don't mix DOS and UNIX paths.
Don't do it.
Don't.
Corinna
--
Corinna Vinschen Please, send mails regarding Cygwin to
Cygwin Developer mailto:cygwin AT cygwin DOT com
Red Hat, Inc.
--
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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |