X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=1.5 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,SPF_HELO_PASS,T_RP_MATCHES_RCVD,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: sourceware.org Message-ID: <28649448.post@talk.nabble.com> Date: Sun, 23 May 2010 06:51:15 -0700 (PDT) From: Willie Vu To: cygwin AT cygwin DOT com Subject: Environment variable problem MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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