X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:date:from:to:subject:message-id; q= dns; s=default; b=l3IZ7+GLItmeYW7t1VB37CgPJgGL9xnYcGWlXXk5j9WBf4 2GHM5X8sNZbNs9x8w9QheAXkcXJu2p4QYdDr7MQe2tGCWRDpJhaGsrVCwUrkCb9W pA+asIPHT0OO0+rcbzbbW4IyH/Y3JIRStTFJ8KjbsEtxzIFHdwuqXUrWWDmuk= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:content-type :content-transfer-encoding:date:from:to:subject:message-id; s= default; bh=8Bqt+tFvZlvVsFyx/b2/uSbjY88=; b=YtRfNf43L9jsTuFgovgN RqYlBVdhzeRsjGIMEvW3COcvnnak1P6EqW17io/42Yr8ALyKAhMABzqjBYua6l23 BNhVtoMB36GOfDhFkvTvuja2NAVErgJGAyNCUeHBswPafFVeejKD7PugqETsgklZ repeX3CLONnbnc1RNJdvZk8= 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 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.2 required=5.0 tests=BAYES_50,KAM_COUK,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW autolearn=no version=3.3.2 X-HELO: avasout03.plus.net X-CM-Score: 0.00 X-CNFS-Analysis: v=2.1 cv=H7AmuLsi c=1 sm=1 tr=0 a=jSQgp9IWXRf89EXR5FPwJg==:117 a=dPviVQZU+rfHUbdBK6bBXw==:17 a=0Bzu9jTXAAAA:8 a=GCZBuicCAAAA:8 a=mrHjP8x4AAAA:8 a=cyCaf7Y57g0A:10 a=sOAojZGi32wA:10 a=IkcTkHD0fZMA:10 a=XAFQembCKUMA:10 a=koVezVozGlh8tNeTWnAA:9 a=QEXdDO2ut3YA:10 X-AUTH: norricorp@:2501 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Date: Tue, 30 Jun 2015 18:27:35 +0000 From: John Norris To: Subject: path dependent on drive in cygwin Message-ID: X-Sender: john AT norricorp DOT f9 DOT co DOT uk User-Agent: Roundcube Webmail/0.7.4 Hi, I am running cygwin 1.7.x on Windows 2008. I realise this may be out of date but this is what we are using. I have noticed that the path variable for our build user is dependent on where "cmd /C" is run from. Please see below - I have cut back the PATH so that it does not overwhelm. Notice the extra C; before the non cygwin entries. And when run from e drive, the C; remains but the c: becomes e:. And this is the problem - the path when run from c is messy but works. The path when run from e (which is where we do run from) does not work. Can anyone explain this. I guess one way round this is to explicitly call the necessary programs without relying on PATH. But interested why this happens. Regards, John $ /c/windows/system32/cmd Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. C:\>notepad notepad C:\>path path PATH=C:\Cygwin\usr\local\bin;C:\Cygwin\bin;C;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;C;C:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;C; C:\>exit exit builduser AT machine04 /c $ cd /e/ builduser AT machine04 /e $ /c/windows/system32/cmd Microsoft Windows [Version 6.1.7600] Copyright (c) 2009 Microsoft Corporation. All rights reserved. E:\>path path PATH=C:\Cygwin\usr\local\bin;C:\Cygwin\bin;C;E:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\IDE;C;E:\Program Files (x86)\Microsoft Visual Studio 9.0\Common7\Tools;C; E:\>exit exit -- 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