From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15303 invoked by alias); 12 Apr 2007 15:58:23 -0000 Received: (qmail 15295 invoked by uid 22791); 12 Apr 2007 15:58:23 -0000 X-Spam-Check-By: sourceware.org Received: from mail.artimi.com (HELO mail.artimi.com) (194.72.81.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 12 Apr 2007 16:58:19 +0100 Received: from rainbow ([192.168.8.46]) by mail.artimi.com with Microsoft SMTPSVC(6.0.3790.3959); Thu, 12 Apr 2007 16:57:54 +0100 From: "Dave Korn" To: "'Joel Brobecker'" Cc: References: <20070411134219.GA33609@adacore.com> <20070411144451.GA21140@caradoc.them.org> <20070411145104.GE58502@adacore.com> <20070411151234.GA22185@caradoc.them.org> <20070412145818.GG3886@adacore.com> <013301c77d13$d4e29c20$2e08a8c0@CAM.ARTIMI.COM> <20070412155422.GI3886@adacore.com> Subject: RE: [mingw32] stdin redirection Date: Thu, 12 Apr 2007 15:58:00 -0000 Message-ID: <015401c77d1b$549ef100$2e08a8c0@CAM.ARTIMI.COM> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <20070412155422.GI3886@adacore.com> Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-04/txt/msg00074.txt.bz2 On 12 April 2007 16:54, Joel Brobecker wrote: [ gdb@ cc'd back in because some of the information I'm replying with is relevant to the thread and should end up in the archives and I don't think you said anything /terribly/ personal in your reply - apologies in advance if you feel I've taken a liberty by doing so. ] >>> Have you tried CYGWIN=tty/CYGWIN=notty? >> >> ... itchy send finger. Should have mentioned that this is only relevant >> in a standard dos console. > > Thanks for the suggestion. I haven't, but will do if necessary. There's > still a lot of information that I'm missing so I'm focusing on trying > to build the necessary knowledge from Daniel (I think he implemented > all that code). Cheers! Cool. The essence of the problem is probably to do with launching a win32 native program from a cygwin console. Cygwin consoles emulate linux pty handling by connecting win32 pipes to stdin/out/err. The "CYGWIN=tty" setting invokes this behaviour in standard DOS consoles as well. Native Win32 programs, OTOH, are not generally very happy with this. Hence you can have problems launching win32 apps from a cygwin native console or from a cygwin shell in a DOS console when CYGWIN=tty. cheers, DaveK -- Can't think of a witty .sigline today....