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 Date: Thu, 20 Nov 2003 10:38:08 -0500 (EST) From: Wirawan Purwanto X-X-Sender: wirawan AT wirawan0 DOT lan To: Morche Matthias cc: cygwin AT cygwin DOT com Subject: RE: Problem with noninteractive bash initialization In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII 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 On Thu, 20 Nov 2003, Morche Matthias wrote: > Dunno where Your read, but the document You referenced says: "When an > interactive shell that is not a login shell is started, Bash reads and > executes commands from `~/.bashrc', if that file exists." > > matthias > > > > -----Original Message----- > > From: Wirawan Purwanto [mailto:wirawan AT camelot DOT physics DOT wm DOT edu] > > Sent: Wednesday, November 19, 2003 9:47 PM > > To: cygwin AT cygwin DOT com > > Subject: Problem with noninteractive bash initialization > > > > > > Hi, > > > > How should a noninteractive bash begin (i.e. for executing a > > script)? > > Should bash read init files like ~/.bashrc, ~/.bash_profile, or > > /etc/profile? According to bash documentation on > > > > http://www.gnu.org/manual/bash-2.05a/html_mono/bashref.html#SEC62 , > > > > NO initialization files would be read. But cygwin's bash (version > .. > -- 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/