Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-MimeOLE: Produced By Microsoft Exchange V6.0.6375.0 Subject: RE: Problem with noninteractive bash initialization Date: Thu, 20 Nov 2003 17:06:29 +0100 Message-ID: X-MS-Has-Attach: X-MS-TNEF-Correlator: From: "Morche Matthias" To: , "Wirawan Purwanto" X-OriginalArrivalTime: 20 Nov 2003 16:06:30.0779 (UTC) FILETIME=[42CB24B0:01C3AF80] Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id hAKG71aF023544 Hi Wirawan, the section "Invoked non-interactively" of "http://www.gnu.org/manual/bash-2.05a/html_mono/bashref.html#SEC62" describes the differences to the other forms of invoking bash. There is no reference to the .bashrc startup script. That states only that there is no other invoking of startupscripts than in the sections above. ~/.bashrc IS executed and that IS the prescribed behavior and is has been ever since. You can avoid this by calling "bash --norc scriptfile" or "bash --rcfile rcfile scriptfile". But I think too, it would have been more accurate to mention the invoking of ~/.bashrc explicitly. matthias > -----Original Message----- > From: Wirawan Purwanto [mailto:wirawan AT camelot DOT physics DOT wm DOT edu] > Sent: Thursday, November 20, 2003 4:38 PM > To: Morche Matthias > Cc: cygwin AT cygwin DOT com > Subject: RE: Problem with noninteractive bash initialization > > > Yes, BUT I suppose that the shell used for executing a script is a > NON-interactive shell, because it doesn't take _commands_ > from the user, > rather from the script. Isn't this right? Therefore it does > not agree with > the prescribed behavior in the documentation. > > Wirawan > ... -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/