From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Ky8Y8-0005iJ-PO for mharc-grub-devel@gnu.org; Thu, 06 Nov 2008 12:21:40 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Ky8Y7-0005hg-7J for grub-devel@gnu.org; Thu, 06 Nov 2008 12:21:39 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Ky8Y6-0005hO-M2 for grub-devel@gnu.org; Thu, 06 Nov 2008 12:21:38 -0500 Received: from [199.232.76.173] (port=48298 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ky8Y6-0005hJ-H0 for grub-devel@gnu.org; Thu, 06 Nov 2008 12:21:38 -0500 Received: from ns39764.ovh.net ([91.121.25.85]:34608 helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Ky8Y6-0000Wt-Ka for grub-devel@gnu.org; Thu, 06 Nov 2008 12:21:38 -0500 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id ADC793E0F7 for ; Thu, 6 Nov 2008 18:21:36 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Thu, 6 Nov 2008 18:20:57 +0100 User-Agent: KMail/1.9.9 References: <20081102181132.GA24737@thorin> <200811041652.21150.okuji@enbug.org> <491094ED.8030704@nic.fi> In-Reply-To: <491094ED.8030704@nic.fi> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200811061820.57827.okuji@enbug.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) Subject: Re: [PATCH] terminal split X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 06 Nov 2008 17:21:39 -0000 On Tuesday 04 November 2008 19:31:09 Vesa J=C3=A4=C3=A4skel=C3=A4inen wrote: > Yoshinori K. Okuji wrote: > > BTW, I would like to obtain the capability of handling pipes, so that we > > can, say, "help | more". I guess you have the same idea in your mind. > > This should be trivial, once the input and output are separate, right? > > I think this would need separated streams design in order to be > functional. Not a bad idea as such.... I am wondering the gain however. > What kind of implementation plan did you have for piping in example more? In "if" conditions, pipes can be sometimes very useful. For example: if ls | grep eth; then # if any ethernet device is present, change the strategy... set fallback=3D"1 2" fi Also, a similar technique can be used to implement "getting an output as a= =20 string". For example: # Use the same password as the super user. set password=3D$(sed -ne '/^root:/{s/root:\([^:]*\).*/\1/;p}' /etc/shadow) Regards, Okuji