X-Recipient: archive-cygwin@delorie.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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; q=dns; s=default; b=UvrgnM66Gf8zcNvN
	prZYBs1mfuc5eZ4TrW8Xj/M0ruOpLtqa1HVEBcRBcPED9HTZl9BubNlEbxd+kEVh
	ooFYi2/ngwTKF7Rk2ybMkGzSe8t6DSnGH1inzDf7g8Q8jvfrFDLqI1qY8IH4AB7+
	l5gE0vG/rBBnkpGnNs4QJIXMgYQ=
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:date:from:reply-to:message-id:to:subject
	:in-reply-to:references:mime-version:content-type
	:content-transfer-encoding; s=default; bh=I00whLmyHJRyeUHi8V97k7
	Z2FoQ=; b=tD43iXT2EQalY1v0kF7UmfFYmWn5QqGeJorvxy6B+cmM0WNdsziM1u
	uMaAy2Qr6D61fuem2wCMcO19yOhBRlv1DOAOZK7eYxagKMgZr5mq7Utz8UnGORUr
	z9PVxGhrW8+8lPmtgMZnoYyqxHEhTtjopSsR0cmMgnqbsXX2cmFCg=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=4.4 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,SPF_SOFTFAIL autolearn=no version=3.3.2
X-HELO: smtp.ht-systems.ru
Date: Thu, 6 Aug 2015 03:14:30 +0300
From: Andrey Repin <anrdaemon@yandex.ru>
Reply-To: cygwin@cygwin.com
Message-ID: <897487143.20150806031430@yandex.ru>
To: Nicholas Clark <nicholas.clark@gmail.com>, cygwin@cygwin.com
Subject: Re: [ANNOUNCEMENT] Updated: Cygwin 2.2.0-1
In-Reply-To: <CAKNeuBqe_w79RBcC=iRki7kZeDQdBen85kWuPZESO0SCGaCUAQ@mail.gmail.com>
References: <announce.20150803131950.GA18878@calimero.vinschen.de>   <55BFB64C.1010802@towo.net> <20150803192940.GA19315@calimero.vinschen.de>  <loom.20150804T094839-714@post.gmane.org>  <895515CC-6BB7-41E7-AEA5-30FBBE071153@etr-usa.com>  <87wpxac2bj.fsf@Rainer.invalid> <20150805075435.GP17917@calimero.vinschen.de>  <1324339149.20150805194114@yandex.ru>  <CAKNeuBqe_w79RBcC=iRki7kZeDQdBen85kWuPZESO0SCGaCUAQ@mail.gmail.com>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-IsSubscribed: yes

Greetings, Nicholas Clark!

> I totally agree that setting HOME to a relative-path is probably a Bad
> Idea, and can/should be undefined behavior. As for absolute paths (and
> whether they should be POSIX, Windows, or either), that's a little
> less cut and dry for me.

> I currently use a ton of scripts of the general form:

> --------
> Cygwin.bat:
>    @echo off

>    @pushd %~dp0
>    @set TOP=%CD%
>    @popd

This wraps into

SET TOP=%~dp0

(If at all necessary to wrap it like that.)

>    set PATH=C:\Windows\SYSTEM32;C:\Windows

SET PATH=%~dp0installation\usr\sbin;%~dp0installation\bin;%SystemRoot%\System32;%SystemRoot%

>    @set HOME=%TOP%\home\%username%
>    @chdir %TOP%\installation\bin

That's just plain wrong and should not be done to begin with.

>    @start mintty.exe -e %TOP%\installation\bin\bash.exe --login -i

START /B mintty.exe -

>    exit

Don't call "EXIT" unless you have no other choice.

> for using Cygwin in a user-level installation to my local directory.

Cygwin don't care, what level you are using it from, as long as the
environment is set up correctly.

> It's not a big deal to go through these and update them if Cygwin
> loses its ability to interpret Windows-style HOME paths, but there are
> probably a lot of users out there who aren't on the mailing list and
> wouldn't know that this change was happening until their installations
> broke.

> So I'm in camp 'leave it as-is', maybe with the exception of
> disallowing relative paths. :)

I don't know how to say it politely, so I would be blunt: Your setup is wrong.
There's at least two ways to do it right, but none of them is coming close to
what you have right now.
Cygwin offers ability to make all you want pretty straight without any
tantric scripts.


-- 
With best regards,
Andrey Repin
Thursday, August 6, 2015 03:07:01

Sorry for my terrible english...


--
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

