www.delorie.com/archives/browse.cgi | search |
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; Sun, 8 Sep 02 23:11:02 +0100 |
From: | "Chris January" <chris AT atomice DOT net> |
To: | "Cygwin AT Cygwin DOT Com" <cygwin AT cygwin DOT com> |
Subject: | problem with bash and interactive mode |
Date: | Sun, 8 Sep 2002 23:11:02 +0100 |
Message-ID: | <LPEHIHGCJOAIPFLADJAHOECCCMAA.chris@atomice.net> |
MIME-Version: | 1.0 |
X-Priority: | 3 (Normal) |
X-MSMail-Priority: | Normal |
Importance: | Normal |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
I am trying to write a 'su' utility for Cygwin. When I launch bash from my su command, it defaults to non-interactive mode (as if it's reading from a script). I have to explicitly add the -i option to force it into interactive mode. However if I type 'bash' normally from the command line it runs interactively. According to the bash manpage, the criteria for determining whether to run interactively or not is down to the return value of isatty. I am starting the process using CreateProcess. I presume this is the same way that, for example, cmd.exe starts processes. However when I run bash from cmd.exe, it starts in interactive mode. Any help or pointers would be appreciated, thanks! Chris -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |