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 X-WM-Posted-At: avacado.atomice.net; Sun, 8 Sep 02 23:11:02 +0100 From: "Chris January" To: "Cygwin AT Cygwin DOT Com" Subject: problem with bash and interactive mode Date: Sun, 8 Sep 2002 23:11:02 +0100 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit 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/