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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; q=dns; s=default; b=MgFUNuVylMS3dchPSTCSqEP1c8jJ /pIV3dzXPJNhcJDA9kIrWylQ48JgaDJqt45v4nvnfp6hNY0XEtuScmCLIsD0byG1 2SC1DDHvlXnNzWEDroWWQjMo5O+5hN3QIdlBKdzV3br+TPP+X9ul+6i5LIX9lPq7 OkP5rxzl9LwXbrk= 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:content-type:mime-version:subject:from :in-reply-to:date:content-transfer-encoding:message-id :references:to; s=default; bh=PwY39Zc/QEIcfXW83KPGmRrqHyE=; b=eD 9iq1Bb6a5i+GmQguPD5kolpOhX75qyOgMizxKg6RSr3sxo4Cne7d1a+YYxPEOkNj VZQR4/u/VgoeAbIaivlIWmOdZF3UUxlC+aDNdsP9XrIzkNmyE+SPj0PLUM9GhiHL trZXO7eucQtf6J9Rehy387vF8E4FKChXkcD4I6baA= 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=0.7 required=5.0 tests=AWL,BAYES_50,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: etr-usa.com Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 8.2 \(2102\)) Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1 From: Warren Young In-Reply-To: Date: Tue, 4 Aug 2015 12:14:37 -0600 Message-Id: <895515CC-6BB7-41E7-AEA5-30FBBE071153@etr-usa.com> References: <55BFB64C DOT 1010802 AT towo DOT net> <20150803192940 DOT GA19315 AT calimero DOT vinschen DOT de> To: The Cygwin Mailing List X-IsSubscribed: yes Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t74IEl4B017511 On Aug 4, 2015, at 1:50 AM, Achim Gratz wrote: > > Corinna Vinschen cygwin.com> writes: >> It's ignored as $HOME in the Cygwin DLL. It's apparently not ignored in >> the base-files package, but that's another problem. > > ...to which the possible solutions are: > > 1. Not hand a botched HOME environment variable to Cygwin processes. When you speak of this in terms of processes, I think you mean that the Cygwin DLL would need to filter the environment, which sounds heavy-handed. If you mean that /etc/profile and such will do the filtering, that could work. > 2. Do the same checks as the Cygwin DLL and fall back to some more sensible > default if HOME is botched. This isn’t a second option, it’s an implementation design for option 1. > 3. Ignore the issue. Here’s an interesting experiment to try on your non-Cygwin POSIX boxes: $ HOME=/dfjkshkds bash -l $ echo $HOME Guess what it prints. Hint: It isn’t the second-to-last field in /etc/passwd. :) Spoiler: Apparently Cygwin is already doing the standard thing. -- 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