From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Kz4dx-0002aD-In for mharc-grub-devel@gnu.org; Sun, 09 Nov 2008 02:23:33 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Kz4dv-0002a8-3J for grub-devel@gnu.org; Sun, 09 Nov 2008 02:23:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Kz4ds-0002Zw-GK for grub-devel@gnu.org; Sun, 09 Nov 2008 02:23:29 -0500 Received: from [199.232.76.173] (port=58369 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Kz4ds-0002Zt-B5 for grub-devel@gnu.org; Sun, 09 Nov 2008 02:23:28 -0500 Received: from ns39764.ovh.net ([91.121.25.85]:53725 helo=nexedi.com) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Kz4ds-0005mv-2q for grub-devel@gnu.org; Sun, 09 Nov 2008 02:23:28 -0500 Received: from [10.8.0.46] (unknown [10.8.0.46]) by nexedi.com (Postfix) with ESMTP id C02463DBFA for ; Sun, 9 Nov 2008 08:23:24 +0100 (CET) From: "Yoshinori K. Okuji" Organization: enbug.org To: The development of GRUB 2 Date: Sun, 9 Nov 2008 08:22:39 +0100 User-Agent: KMail/1.9.9 References: <20081102181132.GA24737@thorin> <200811061820.57827.okuji@enbug.org> <20081107190707.GC8625@thorin> In-Reply-To: <20081107190707.GC8625@thorin> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200811090822.40119.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: Sun, 09 Nov 2008 07:23:31 -0000 On Friday 07 November 2008 20:07:07 Robert Millan wrote: > On Thu, Nov 06, 2008 at 06:20:57PM +0100, Yoshinori K. Okuji wrote: > > Also, a similar technique can be used to implement "getting an output as > > a string". For example: > > > > # Use the same password as the super user. > > set password=$(sed -ne '/^root:/{s/root:\([^:]*\).*/\1/;p}' > > /etc/shadow) > > This would work much better in grub-mkconfig. You don't want to implement > (or port) sed do you? ;-) I don't want to duplicate information when they should be indentical. Synchronization is a nightmare. sed is just an example. You can use 'cut' in this case as well. Regards, Okuji