Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
X-WM-Posted-At: avacado.atomice.net; Sat, 14 Sep 02 17:34:41 +0100
From: "Chris January" <chris@atomice.net>
To: "Cygwin@Cygwin.Com" <cygwin@cygwin.com>
Subject: Question about Cygwin process behaviour and bash interactive mode
Date: Sat, 14 Sep 2002 17:34:41 +0100
Message-ID: <LPEHIHGCJOAIPFLADJAHKELHCMAA.chris@atomice.net>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
Importance: Normal

If I launch a Windows command shell (cmd.exe) from, e.g. a Window shortcut,
and then run bash from that shell, bash starts interactive mode.
If I launch a Cygwin bash shell from, e.g. cygwin.bat, then run cmd from
that shell (I type cmd), a Windows command shell starts. If I then run bash
from that command shell, bash starts in non-interactive mode.

Can anyone explain this behaviour and why bash starts in interactive mode in
one case, and non-interactive mode in the other, even though both times it
is launched from cmd.exe?

Chris

---

Starting bash from cmd.exe running from shortcut:

Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\Documents and Settings\chris>bash
bash-2.05b$ somecommand
bash: somecommand: command not found

Starting bash from cmd.exe started from bash:

^^^ bash is running in interactive mode.

chris@AVACADO ~
$ cmd
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.

C:\cygwin\home\chris>bash
bash
somecommand
bash: line 1: somecommand: command not found

^^^^ bash is running in non-interactive mode


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

