From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1f8Tba-0006rz-P2 for mharc-grub-devel@gnu.org; Tue, 17 Apr 2018 12:37:18 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:33056) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f8TbV-0006rL-SA for grub-devel@gnu.org; Tue, 17 Apr 2018 12:37:17 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f8TbR-0005lD-U7 for grub-devel@gnu.org; Tue, 17 Apr 2018 12:37:13 -0400 Received: from boksu.net-space.pl ([185.15.1.105]:51415) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_3DES_EDE_CBC_SHA1:24) (Exim 4.71) (envelope-from ) id 1f8TbR-0005jT-Is for grub-devel@gnu.org; Tue, 17 Apr 2018 12:37:09 -0400 Received: (from localhost user: 'dkiper' uid#4000 fake: STDIN (dkiper@boksu.net-space.pl)) by router-fw-old.local.net-space.pl id S1836492AbeDQQhG (ORCPT ); Tue, 17 Apr 2018 18:37:06 +0200 Date: Tue, 17 Apr 2018 18:37:06 +0200 From: Daniel Kiper To: mchang@suse.com Cc: grub-devel@gnu.org, phcoder@gmail.com Subject: Re: [PATCH] pass kernel command line as verbatim Message-ID: <20180417163706.GC21283@router-fw-old.local.net-space.pl> References: <20180411085854.vjhgkax6ue7ecius@mazu> <20180411091703.z3eypksfbwvdtsrj@mazu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180411091703.z3eypksfbwvdtsrj@mazu> User-Agent: Mutt/1.3.28i X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 185.15.1.105 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Apr 2018 16:37:18 -0000 On Wed, Apr 11, 2018 at 05:17:03PM +0800, Michael Chang wrote: > And this bug report seems relevant .. > > https://savannah.gnu.org/bugs/?49937 > > On Wed, Apr 11, 2018 at 04:58:54PM +0800, Michael Chang wrote: > > The command line has been processed by grub shell, then the result is expected > > to be passed to kernel command line as verbatim according to the grub manual > > [1][2]. > > > > This patch removes extra escape character added as it helps nothing but only > > creates trouble as you want them to be literal. Besides the surrounding > > double-quotes added is kept as it used to protect space. CC-ing Vladmir. Hmmm... Have you tested this patch on all platforms supported by GRUB2? I understand that current behavior is not accepted on some but I have a feeling that somebody make it work in that way due to some reason. Sadly I cannot find anything about that in git log. So, I have to think how to cope with that. Or... Vladmir, do you know why command line is processed in that way? Daniel