X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: Date: Sat, 5 Dec 2009 13:16:33 -0700 Message-ID: Subject: RE: handle invalid running native console app from cygwin shell From: Kurt Harriger To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Update: I discovered that if I remove tty from CYGWIN variable the problem is fixed. However, emacs doesn't work correctly if its not set (C-x C-c is interpreted as C-x C-g). So it seems that your kinda damned if you do damned if you don't. ---------- Forwarded message ---------- From: Kurt Harriger Date: Sat, Dec 5, 2009 at 12:40 PM Subject: handle invalid running native console app from cygwin shell To: cygwin AT cygwin DOT com I'm trying to run a boo script from a cygwin bash shell. http://boo.codehaus.org/ booish runs fine from cmd or powershell but from bash I get an error. I thought maybe then I could do cmd /c booish but this doesn't work either. Any idea how I can workaround the issue? $ booish Welcome to booish, an interactive interpreter for the boo programming langu= age. Running boo 0.9.2.3383 on CLR 2.0.50727.4927. Enter boo code in the prompt below (or type /help). Unhandled Exception: System.IO.IOException: The handle is invalid. =A0 at System.IO.__Error.WinIOError(Int32 errorCode, String maybeFullPath) =A0 at System.IO.__Error.WinIOError() =A0 at System.Console.set_CursorVisible(Boolean value) =A0 at Boo.Lang.Interpreter.InteractiveInterpreter2.ConsoleLoopEval() =A0 at Booish2Module.Main(String[] argv) -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple