From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1HyiUL-00069m-CZ for mharc-grub-devel@gnu.org; Thu, 14 Jun 2007 02:07:21 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HyiUK-00069h-14 for grub-devel@gnu.org; Thu, 14 Jun 2007 02:07:20 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HyiUJ-00069V-G5 for grub-devel@gnu.org; Thu, 14 Jun 2007 02:07:19 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HyiUJ-00069S-C5 for grub-devel@gnu.org; Thu, 14 Jun 2007 02:07:19 -0400 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HyiUI-0001VS-PO for grub-devel@gnu.org; Thu, 14 Jun 2007 02:07:18 -0400 Received: from aybabtu.com ([69.60.117.155]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HyiUI-000417-Ag for grub-devel@gnu.org; Thu, 14 Jun 2007 02:07:18 -0400 Received: from [192.168.10.6] (helo=aragorn) by aybabtu.com with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1HyiUA-0003Xv-DU for grub-devel@gnu.org; Thu, 14 Jun 2007 08:07:11 +0200 Received: from rmh by aragorn with local (Exim 4.63) (envelope-from ) id 1HyiV7-0007BN-E6 for grub-devel@gnu.org; Thu, 14 Jun 2007 08:08:09 +0200 Date: Thu, 14 Jun 2007 08:08:09 +0200 From: Robert Millan To: The development of GRUB 2 Message-ID: <20070614060809.GA27145@aragorn> References: <20070614034649.GA591@ws3.vdp.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20070614034649.GA591@ws3.vdp.com> Organization: free as in freedom X-Message-Flag: Microsoft discourages use of Outlook. X-Debbugs-No-Ack: true User-Agent: Mutt/1.5.13 (2006-08-11) X-detected-kernel: Genre and OS details not recognized. X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) Subject: Re: Command extension suggestions 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, 14 Jun 2007 06:07:20 -0000 On Thu, Jun 14, 2007 at 11:46:49AM +0800, Bean wrote: > These ideas are mostly from grub4dos, I think they can be useful in GRUB2. > > 1. cat > > In addition to the current function, cat can also generate hexadecimal dump, > and it can optionally choose the range of bytes to display. For example: > > cat [--hex] [--skip=S] [--length=L] FILE Wouldn't it be more consistent to call it: od [-j|--skip-bytes=S] [-N|--read-bytes=L] FILE > Sometimes it's useful to dump the content of physical memory, it can be > implemented with a special option --mem. For example, > > cat [--mem] [--skip=S] [--length=L] base_address > > It can also be implemented with virtual device (md). For example, > > cat --hex (md)+2 That sounds much cleaner IMHO. But IIRC (md) is already in use by the RAID/LVM stuff ? > 2. find > > Find command is missing in GRUB2. It's used to find the device which contains > a certain file. > > find [--set=var_name] FILENAME We have this already, only with different name: search --set /file (root is implicit, but it can be overriden) -- Robert Millan My spam trap is honeypot@aybabtu.com. Note: this address is only intended for spam harvesters. Writing to it will get you added to my black list.