This is the mail archive of the
mailing list for the Cygwin project.
problem with bash and interactive mode
- From: "Chris January" <chris at atomice dot net>
- To: "Cygwin at Cygwin dot Com" <cygwin at cygwin dot com>
- Date: Sun, 8 Sep 2002 23:11:02 +0100
- Subject: problem with bash and interactive mode
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
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!
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html