delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/08/30/09:17:23

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:date:from:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; q=dns; s=
default; b=tHmmeAQFVEZiFTnmyeqVHWQuj/P/QDE9a92lntB/G5E0Nz3wzKBLX
bzRpiatsmSDQ3OrkaYT8zNGuIcZFymYd2R+VmrVlyEWB6TMhzDZdgjDIwuxSg4qQ
iDJMOa1JR1W36xfSy4CDg7HfE4QRkdavjAq4uQNhITTSELrgyZBf5c=
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:to:subject:message-id:reply-to
:references:mime-version:content-type:in-reply-to; s=default;
bh=Wl2b2Wfq4HeTYykYGEqxQ49slSw=; b=I1sPhWuN2vEN+fL29csd3BUmt81o
KpYy0sLtrjlmzXcrFAJxXi+jps8ZVz4lO0NXvzecgybz64ri5hBI5HQu2RGQKuFH
1//KmDfqVK3SL6WpnUg9nnBNRe/hySKZPfqzkJsBfOdAv3cr0YAu3ZsBVInGuDLS
+a20W8RLcE62ArQ=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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=-101.6 required=5.0 tests=BAYES_00,GOOD_FROM_CORINNA_CYGWIN,KAM_LAZY_DOMAIN_SECURITY,RCVD_IN_DNSWL_LOW,SPF_HELO_PASS autolearn=ham version=3.3.2 spammy=H*MI:sk:57C06CF, thoughtfully, Hx-languages-length:1101
X-HELO: drew.franken.de
Date: Tue, 30 Aug 2016 15:16:53 +0200
From: Corinna Vinschen <corinna-cygwin AT cygwin DOT com>
To: cygwin AT cygwin DOT com
Subject: Re: Proposal for new cygwin.bat which is independent from install directory
Message-ID: <20160830131653.GD28244@calimero.vinschen.de>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
References: <57C06CFA DOT 4060405 AT t-online DOT de>
MIME-Version: 1.0
In-Reply-To: <57C06CFA.4060405@t-online.de>
User-Agent: Mutt/1.6.2 (2016-07-01)

--uxuisgdDHaNETlh8
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Aug 26 18:23, Christian Franke wrote:
> Traditionally setup.exe creates the /cygwin.bat file as follows if C:\cyg=
win
> is the install directory:
> -----
> @echo off
>=20
> C:
> chdir C:\cygwin\bin
>=20
> bash --login -i
> -----
>=20
>=20
> The following should work since WinXP regardless of install directory:
> -----
> @echo off
>=20
> cd /d %~dp0
> if errorlevel 1 exit /b 1
> cd bin
> if errorlevel 1 exit /b 1
>=20
> bash --login -i
> -----
>=20
> I would suggest to add something like the above as
> "/etc/defaults/cygwin.bat" to base-files package. The postinstall script
> should copy it to "/cygwin.bat" if new. The creation of this file could
> later be removed from setup.exe.

Apart from the complexity discussion, which is largly irrelevant, I like
the idea of moving this functionality out of setup and into a postinstall
script.

Please send patches.  I'm sure Achim will thoughtfully consider them.


Thanks,
Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--uxuisgdDHaNETlh8
Content-Type: application/pgp-signature; name="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQIcBAEBCAAGBQJXxYdFAAoJEPU2Bp2uRE+groUP/2SANTUxXgcPUwnM5/AtNYNt
OslSrK8euTPaD4OzR9Yt3VTpWyaLf56lwsv0uEwbrbGtfo8zycwHCqR/LUMiJLkF
OXuKMmalXm44il6k8qKSoFrUjoWCUNiD/ACERMBII4Cn3gJ2nRtTWxjDXVFSKMpD
HWpfVtDrmcqVPt9+Rc35tt8CQtlr7/S+BIDXN8EubHeIQnFYUazO91NOFAASRIwt
7KH3b8h2w20rVTFcp1+fs1STYkRBiG+W1SwHXTdueDnTJwiz6yrrU14DMnmgPBOB
gpKmIM/NSausDfeIcbtBcxaetYFuiORebxe/pb2oeTJTxl41/6YRJmQLF+DT37aZ
Av06ioHS3CSMPCS3NqzPmzTgSQGM6L/4FMkcrmN/mAVuvIangaIpPKI/J42kVA05
28D0LBxkAis/zEJR/zGgue4bd7l75FaOKYF2mIhKElK2cXfI9qQmxzonjHGkgq22
leYRaVWOWbD/aX1N/to+6J2B/0jSgPuaITAGtCiJarq7k9U0haE7L5KXoGoby5Qo
3jkP0Mhb3kYXx5cUPkoEYW5j78Rl9vQ+KVcW5lxiry+sP22oXCEUPYYOmeEqrUIr
CCKnKg8m+yxS+bsOxWb3H/NAttPMFBuvom9AuuwG2ybs8C0UCH9jTXpEQ98sBG/+
J3VoQ/9Rle/L2AsjDPjJ
=0Xzy
-----END PGP SIGNATURE-----

--uxuisgdDHaNETlh8--

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019