www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-SWARE-Spam-Status: | No, hits=-1.3 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,T_TO_NO_BRKTS_FREEMAIL |
X-Spam-Check-By: | sourceware.org |
MIME-Version: | 1.0 |
In-Reply-To: | <28649448.post@talk.nabble.com> |
References: | <28649448 DOT post AT talk DOT nabble DOT com> |
Date: | Sun, 23 May 2010 22:10:17 +0800 |
Message-ID: | <AANLkTinQOHmDt3L3gpEJHOsGjjE8ifPg74kJwAX07_8o@mail.gmail.com> |
Subject: | Re: Environment variable problem |
From: | Huang Bambo <bambo DOT huang AT gmail DOT com> |
To: | cygwin AT cygwin DOT com |
X-IsSubscribed: | yes |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sourceware.org/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs> |
Sender: | cygwin-owner AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
There is no pathname like d: in cygwin, use /cygdriver/d/ instead. 2010/5/23 Willie Vu <willievu AT dev DOT java DOT net>: > > I set an environment variable in /etc/profile.d/env.sh that is loaded when > Cygwin starts, like the following: > > export M2_HOME=3Dd\:/java/apache-maven-2.2.1 > > When it is echoed, it shows the value correctly. > > $ echo $M2_HOME > d:/java/apache-maven-2.2.1 > > However, if I suffix it with "/bin", it becomes the following: > > $ echo $M2_HOME/bin > /binava/apache-maven-2.2.1 > > If I run the export statement inline, then there is no problem. > > $ export M2_HOME=3Dd\:/java/apache-maven-2.2.1 > > $ echo $M2_HOME > d:/java/apache-maven-2.2.1 > > $ echo $M2_HOME/bin > d:/java/apache-maven-2.2.1/bin > > Any idea? > -- > View this message in context: http://old.nabble.com/Environment-variable-= problem-tp28649448p28649448.html > Sent from the Cygwin list mailing list archive at Nabble.com. > > > -- > Problem reports: =A0 =A0 =A0 http://cygwin.com/problems.html > FAQ: =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 http://cygwin.com/faq/ > Documentation: =A0 =A0 =A0 =A0 http://cygwin.com/docs.html > Unsubscribe info: =A0 =A0 =A0http://cygwin.com/ml/#unsubscribe-simple > > -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |