delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT 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 AT redhat DOT 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 AT cygwin DOT com |
Subject: | Re: Is there a difference between "bash --login" and "bash --login -i" |
References: | <1299EF3181B10F479D85C328013285240331C4D1 AT THEZE DOT intra DOT cea DOT fr> |
In-Reply-To: | <1299EF3181B10F479D85C328013285240331C4D1@THEZE.intra.cea.fr> |
X-IsSubscribed: | yes |
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 |
--------------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 AT redhat DOT 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--
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |