X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-6.8 required=5.0	tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI,SPF_HELO_PASS,TW_RX,T_RP_MATCHES_RCVD
X-Spam-Check-By: sourceware.org
Message-ID: <4C572674.8050408@redhat.com>
Date: Mon, 02 Aug 2010 14:11:32 -0600
From: Eric Blake <eblake@redhat.com>
User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.7) Gecko/20100720 Fedora/3.1.1-1.fc13 Lightning/1.0b2pre Mnenhy/0.8.3 Thunderbird/3.1.1
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: Re: Is there a difference between "bash --login" and "bash --login -i"
References: <1299EF3181B10F479D85C328013285240331C4D1@THEZE.intra.cea.fr>
In-Reply-To: <1299EF3181B10F479D85C328013285240331C4D1@THEZE.intra.cea.fr>
Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="------------enig071F4EF5777EAA2BDB4377F0"
X-IsSubscribed: yes
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

--------------enig071F4EF5777EAA2BDB4377F0
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

On 08/02/2010 02:09 PM, JOHNER Jean 066030 wrote:
> Hello,
>=20
> The default Cygwin.bat uses "bash --login -I" while the default  rxvt-nat=
ive shortcut uses "bash --login".

-i (I assume you meant little i here) forces an interactive shell, even
if the shell's default actions would otherwise select non-interactive.
But rxvt-native and cygwin.bat are typically called in environments
where stdin and stderr are terminals, at which point the default action
is interactive even without -i.

> If not, why keep -i in Cygwin.bat?

To make it clear at a glance that the shell will be interactive, without
making you go read 'man bash' to find out what other conditions cause an
interactive shell and whether cygwin.bat meets those other conditions.

--=20
Eric Blake   eblake@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


--------------enig071F4EF5777EAA2BDB4377F0
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.14 (GNU/Linux)
Comment: Public key at http://people.redhat.com/eblake/eblake.gpg
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org/

iQEcBAEBCAAGBQJMVyZ0AAoJEKeha0olJ0Nq4EkH/3mhqUhXzxssGpPsEF0oSeVL
jIKGEQTotlZYZUkWPlxQ77KlbyFpflzIKkLxj97WYUo0ojM0InrZLxXmYPwFWWGH
zd0XhSivnsWbZLAQFl3X3LNCB3lgHANTQhpHr8m+2joj4EyU5XjJgirsWOH4vm/c
z3NWSX5eCqNcxmr9/Ul6Gndua1SjzHsDtUXClvaIcgfBj7ky0uxFcfZNMF4WP/y/
eK+2prxH9zgiSw5GtJeW0FN7p29SCp6kf5FavrjQEYrDfM098CLm3TF0Ct6yWVxM
JJAZjzrF046bBdf+4g92MsytsR3DDdOGbrrc54THltaURI05eUdDTHnru1yMXoU=
=wBH/
-----END PGP SIGNATURE-----

--------------enig071F4EF5777EAA2BDB4377F0--
