From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12855 invoked by alias); 15 Oct 2005 12:29:36 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 12842 invoked by uid 22791); 15 Oct 2005 12:29:35 -0000 Received: from romy.inter.net.il (HELO romy.inter.net.il) (192.114.186.66) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sat, 15 Oct 2005 12:29:35 +0000 Received: from HOME-C4E4A596F7 (IGLD-83-130-202-172.inter.net.il [83.130.202.172]) by romy.inter.net.il (MOS 3.5.8-GR) with ESMTP id CSA07714 (AUTH halo1); Sat, 15 Oct 2005 14:29:30 +0200 (IST) Date: Sat, 15 Oct 2005 12:29:00 -0000 Message-Id: From: Eli Zaretskii To: "jingzhao.ou" , gdb@sources.redhat.com In-reply-to: <20051009171225.GA4295@nevyn.them.org> (message from Daniel Jacobowitz on Sun, 9 Oct 2005 13:12:26 -0400) Subject: Re: Separating "shell dir" output from GDB/MI output Reply-to: Eli Zaretskii References: <20051009123326.GA436@white> <20051009171225.GA4295@nevyn.them.org> X-SW-Source: 2005-10/txt/msg00091.txt.bz2 > Date: Sun, 9 Oct 2005 13:12:26 -0400 > From: Daniel Jacobowitz > Cc: gdb@sources.redhat.com > > A simpler and more specific solution for this particular problem would > be to run "shell" through pipes and MI encapsulate its output, to > prevent it from playing with the user's terminal. I think that's a > good idea anyway. I agree. We just need to be careful to use the portable routines, like pexecute or popen/pclose, and then it will work everywhere.