Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1OT99X-0001CJ-Mp for mharc-grub-devel@gnu.org; Mon, 28 Jun 2010 03:53:15 -0400 Received: from [140.186.70.92] (port=60980 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OT99U-0001BC-7Z for grub-devel@gnu.org; Mon, 28 Jun 2010 03:53:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OT99T-0001NJ-35 for grub-devel@gnu.org; Mon, 28 Jun 2010 03:53:12 -0400 Received: from smarthost03.mail.zen.net.uk ([212.23.3.142]:36549) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OT99S-0001NC-Sd for grub-devel@gnu.org; Mon, 28 Jun 2010 03:53:11 -0400 Received: from [82.69.40.219] (helo=riva.pelham.vpn.ucam.org) by smarthost03.mail.zen.net.uk with esmtp (Exim 4.63) (envelope-from ) id 1OT99R-00022k-2r; Mon, 28 Jun 2010 07:53:09 +0000 Received: from cjwatson by riva.pelham.vpn.ucam.org with local (Exim 3.36 #1 (Debian)) id 1OT99P-0001kA-00; Mon, 28 Jun 2010 08:53:07 +0100 Date: Mon, 28 Jun 2010 08:53:07 +0100 From: Colin Watson To: The development of GNU GRUB Message-ID: <20100628075307.GA6682@riva.ucam.org> References: <20100618183408.12015.77315.reportbug@feather> <20100620221937.GS12396@riva.ucam.org> <4C24FAA0.5060303@gmail.com> <20100628000206.GW21862@riva.ucam.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20100628000206.GW21862@riva.ucam.org> User-Agent: Mutt/1.5.18 (2008-05-17) X-Originating-Smarthost03-IP: [82.69.40.219] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) Cc: Josh Triplett , 586358@bugs.debian.org Subject: Re: Bug#586358: grub-pc: Please handle DOS line endings in "cat" X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Jun 2010 07:53:13 -0000 On Mon, Jun 28, 2010 at 01:02:06AM +0100, Colin Watson wrote: > On Fri, Jun 25, 2010 at 08:51:12PM +0200, Vladimir 'φ-coder/phcoder' Serbinenko wrote: > > Colin Watson wrote: > > > On Fri, Jun 18, 2010 at 11:34:08AM -0700, Josh Triplett wrote: > > >> The "cat" command, if given a file with DOS line endings, will show the > > >> \r at the end of every line as a control character. For convenience, > > >> please consider adding support for this in "cat", ideally automatically. > > > > > > Makes sense to me. grub-devel, how about this patch? > > > > Unconditionaly stripping \r is a bad idea because sometimes cat in grub > > is used to determine why the system fails to boot. And if by a stupid > > action fstab becomes DOS-formated 'cat /etc/fstab' will fail to show > > this important point. But it's ok to add an option for cat'ing DOS > > files. > > OK. How about the following patch, then? Vladimir approved this on IRC. Committed. -- Colin Watson [cjwatson@ubuntu.com]