From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 24186 invoked by alias); 5 Aug 2011 10:36:34 -0000 Received: (qmail 24176 invoked by uid 22791); 5 Aug 2011 10:36:34 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 05 Aug 2011 10:36:20 +0000 Received: (qmail 14329 invoked from network); 5 Aug 2011 10:36:19 -0000 Received: from unknown (HELO scottsdale.localnet) (pedro@127.0.0.2) by mail.codesourcery.com with ESMTPA; 5 Aug 2011 10:36:19 -0000 From: Pedro Alves To: Abhijit Halder Subject: Re: [PATCH] An implementation of pipe to make I/O communication between gdb and shell. Date: Fri, 05 Aug 2011 10:36:00 -0000 User-Agent: KMail/1.13.6 (Linux/2.6.38-8-generic; KDE/4.6.2; x86_64; ; ) Cc: Jan Kratochvil , gdb-patches@sourceware.org, Sergio Durigan Junior , Tom Tromey References: <201108051056.59135.pedro@codesourcery.com> In-Reply-To: MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <201108051136.14880.pedro@codesourcery.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2011-08/txt/msg00104.txt.bz2 On Friday 05 August 2011 11:24:54, Abhijit Halder wrote: > > the delimiter would be `dthread'. I see no reason to > > require it to be a single character. > > > Just a thought. Can't using a single character make the life simple? To who? I imagine myself stumbling on some expression in some language that conflicts with |, and without much thinking, just writing: pipe XXX randomexpr XXX randomcommand instead of having to think, or possibly try/fail more than one time, which characters are allowed and wouldn't conflict with both randomexpr and randomcommand. > That will surely reduce the options for delimiter. But as you said, > like sed this can be used. Well, I said like a grandchild of sed and cat EOF, the latter refering to "here documents", which accept strings as delimiters. :-) Sorry for not being clear. -- Pedro Alves