delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/09/14/12:34:51

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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
X-WM-Posted-At: avacado.atomice.net; Sat, 14 Sep 02 17:34:41 +0100
From: "Chris January" <chris AT atomice DOT net>
To: "Cygwin AT Cygwin DOT Com" <cygwin AT cygwin DOT 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
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 AT 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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019