X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-3.6 required=5.0 tests=BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding :x-gm-message-state; bh=5S73Jud4zWR1DFg1/NRlZx7PVzW25gS/nFlOWyZGnMA=; b=PqL7z+2eKwUsrjTMAPWaPeFE8OYeN7d4dMNp+D6LJxl9/nUJY3eb5QajZ/NXVCY1Q5 FXRpQBkRxg8RQceV0zl2jirKt7SQaRBJlaNF7KmsQUvZSXAn4kmkkBV9kEYzfXQQJTxh 4ADr4YpujoUbPfPIjUgcwop3iB85p7KOHXvGSDHsslmsiqy9Wi3OeopkjyVKKojTYb5k AlbRcyYkW2inf7fGgR6c9JXILfPgIc7zHLGKL/O47dfxgyPcMwFWC5vQxyJmC65mHbPq cjSdW0I6v01FVk4GAtPnTO4kl7pXrHZl/la8PALNs06Ahp4ybXl7HdFrKE4YAm+rBIgO visA== Message-ID: <506211B1.2010401@silicondust.com> Date: Tue, 25 Sep 2012 13:18:57 -0700 From: jafa User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Attn: base-files maintainer? [Was: sshd from user account - env issues] References: <505A03B1 DOT 6070409 AT silicondust DOT com> <505AAD94 DOT 5060205 AT cwilson DOT fastmail DOT fm> In-Reply-To: <505AAD94.5060205@cwilson.fastmail.fm> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Gm-Message-State: ALoCoQkyodpvhqY49xW/4t0fYcdwmNb+YMqaea1hI5dgdrdvpo3CTljjuWqhNbzH1aS60g7sPrzJ 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 On 9/19/2012 10:45 PM, Charles Wilson wrote: > On 9/19/2012 1:41 PM, jafa wrote: >> Running SSHD from the user account like this basically works - I can ssh >> into the machine, but the env vars are not quite right. >> >> For example, local bash: >> TEMP=/tmp >> temp=C:\Users\build\AppData\Local\Temp >> TMP=/tmp >> tmp=C:\Users\build\AppData\Local\Temp >> >> SSH session: >> temp= >> TEMP=/tmp >> tmp= >> TMP=/tmp > > Try installing the test version of the base-files package (4.1-2). > There was a thread six months ago or so where it was decided that > setting vars in both upcase and lowercase was a bad idea (breaks .net > applications, for one thing, and confuses many others). This change > was implemented in base-files as a test, but has never been promoted. Windows sets temp and tmp to windows style paths (eg C:\Users\build\AppData\Local\Temp) Cygwin sets TEMP and TMP to cygwin style paths (eg /tmp) Confirming, MSVS fails to compile if both "TMP" and "tmp" are set. The workaround is to unset TEMP and TMP on the line that invokes MSVS. MSVS detects the Windows style "temp" and "tmp" vars and runs ok. Having just one "TMP" var may cause problems... if TMP is set to a cygwin style path MSVS won't work, and if TMP is set to a Windows style path some cygwin apps might not work. The current release implementation works ok - Cygwin apps work without issue and MSVS works as long as you unset TEMP and TMP before invoking. Nick -- 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