This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Environment variable problem
- From: Huang Bambo <bambo dot huang at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Sun, 23 May 2010 22:10:17 +0800
- Subject: Re: Environment variable problem
- References: <28649448.post@talk.nabble.com>
There is no pathname like d: in cygwin, use /cygdriver/d/ instead.
2010/5/23 Willie Vu <willievu@dev.java.net>:
>
> I set an environment variable in /etc/profile.d/env.sh that is loaded when
> Cygwin starts, like the following:
>
> export M2_HOME=d\:/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=d\:/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: ? ? ? http://cygwin.com/problems.html
> FAQ: ? ? ? ? ? ? ? ? ? http://cygwin.com/faq/
> Documentation: ? ? ? ? http://cygwin.com/docs.html
> Unsubscribe info: ? ? ?http://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