Received: from list by lists.gnu.org with archive (Exim 4.90_1) id 1jCjUO-0004t1-3v for mharc-grub-devel@gnu.org; Fri, 13 Mar 2020 08:32:32 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:34626) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jCjUH-0004rb-6S for grub-devel@gnu.org; Fri, 13 Mar 2020 08:32:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1jCjUG-0006vx-4J for grub-devel@gnu.org; Fri, 13 Mar 2020 08:32:25 -0400 Received: from mo6-p00-ob.smtp.rzone.de ([2a01:238:20a:202:5300::4]:10849) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1jCjUF-0006sC-Bq for grub-devel@gnu.org; Fri, 13 Mar 2020 08:32:24 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1584102741; s=strato-dkim-0002; d=aepfle.de; h=References:In-Reply-To:Message-ID:Subject:Cc:To:From:Date: X-RZG-CLASS-ID:X-RZG-AUTH:From:Subject:Sender; bh=OhhcI9T31eR++rjnMGVEl95n9/0TTghFlBLOuuu+0hE=; b=bsxj2Uqq2YgygvTf3+Qs6tvel7A3X56tBEWfX6Oi06LlvKjCk4AFM4bEx60FeD8xBb XY0y4nMqTTr3cHl6tkRffYDcl4fFns2lsw3cLUTVBEp8vwhUYpqRyDm4eTQJLwum9lpS bCa0CEQ5R4gvN6nJi9shAWiJh25rrki9WBiSU3kMnqYlvXgESxB9O924gJJyQivE88Ro ltyHmx8hdx3v4fTxl3kGPXr/eUenhEPtnt/y7iKd1j9Dit9vHo8pJg237PKwtDi3OkZX ayBaLL2Ee1ryVo6+SiNbyOcqU+txMshv3axlPwp4iGRsSm6pnyCFLCXxa19kteIC9xMI 2Fug== X-RZG-AUTH: ":P2EQZWCpfu+qG7CngxMFH1J+3q8wa/QED/SSGq+wjGiUC44eztn93Z9OGdNZlwIP8Q==" X-RZG-CLASS-ID: mo00 Received: from sender by smtp.strato.de (RZmta 46.2.0 SBL|AUTH) with ESMTPSA id u021a0w2DCWKxlz (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Fri, 13 Mar 2020 13:32:20 +0100 (CET) Date: Fri, 13 Mar 2020 13:32:12 +0100 From: Olaf Hering To: Daniel Kiper Cc: grub-devel@gnu.org Subject: Re: avoiding quotes in kernel cmdline Message-ID: <20200313133212.0671603c.olaf@aepfle.de> In-Reply-To: <20200313115932.4dgu3plhwdovmy7r@tomti.i.net-space.pl> References: <20200313120250.7d0eb886.olaf@aepfle.de> <20200313115932.4dgu3plhwdovmy7r@tomti.i.net-space.pl> X-Mailer: Claws Mail 2019.12.31 (GTK+ 2.24.32; x86_64-suse-linux-gnu) MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_/CzDW.+wVf0wbgVySsNsyPom"; protocol="application/pgp-signature" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 2a01:238:20a:202:5300::4 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 13 Mar 2020 12:32:26 -0000 --Sig_/CzDW.+wVf0wbgVySsNsyPom Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Am Fri, 13 Mar 2020 12:59:32 +0100 schrieb Daniel Kiper : > Both var=3D"\"str\"" and var=3D"'str'" should work. Does not they? Do you > still get backslashes in ${cmdline}? Yes. I think the issue might be the "final expansion" in the menuentry and/= or linux command? # grub.cfg=20 insmod part_msdos insmod ext2 serial --unit=3D0 --speed=3D115200 terminal_input serial terminal_output serial var=3D"\"str\"" cmdline=3D"${var} console=3DttyS0,115200 quiet" menuentry 'ROOT' { search --no-floppy --label --set=3Droot ROOT linux ($root)/boot/vmlinuz ${cmdline} initrd ($root)/boot/initrd } BOOT_IMAGE=3D(hd0,msdos2)/boot/vmlinuz \"str\" console=3DttyS0,115200 quiet Olaf --Sig_/CzDW.+wVf0wbgVySsNsyPom Content-Type: application/pgp-signature Content-Description: Digitale Signatur von OpenPGP -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEE97o7Um30LT3B+5b/86SN7mm1DoAFAl5rfUwACgkQ86SN7mm1 DoBIDg/+K4F1eGVCb1B3q+D3ciO7T+XI6wTXXf1QPrOO9dtUEwiiF5PZu83w8hYb UEIUPK2owxivQtQR/1juaoPpSa13SakfGhKZ9q9tvy1oWf0n0ClPVrafV5fPE9Ue OCNl01SuQiQwtol3grsWRoKeN16bPBBqF9yPA1Shy/1ixl5IqnI6ySSQFNRdMLoU QapM1cuacfYmdLphmVoFcndnpFYC0MewV2hEh1BYFnXnrje1faX9c2VdS+z9FmSa ESi6z3/B6IQr61fxLFEMTUQZDA4fhkxhpFGtEehH/tKwzBRtuZlj5lfbavwAUPK9 BKPlg5acPsmnjqLIkQhn7d1V6+h1BOSJXyvmczGPxfnxiCcRAnlVfZyhQLRC7gyg qbWTdzYw83cxKFEFvJFpVuJn3G7XN6cZCpDp/zyQkRrNdWkXphujWQkEC/1YOOeo 3yljW3MOOO9/rWmqha+Wq7pMjZ9P++igtHP83Z3w5FsIOsC9Lj0+sWE31Jol795o oBPlfWGEPev8M9NE/PVzO9cz1n3QpYPKYNFQ/CSLexu3TifD4S+gb17yHba4bde7 N/GqQggNSXOOWKG1H1+ZtTrMR80DEYfksufkC1SDOF72ZqPptVr3aNOMeabZnEz5 2H9fXQx6A2hSTtCXX8ErcInWKmAUgjI3r+WfyU3l2c47A9tG6n8= =popu -----END PGP SIGNATURE----- --Sig_/CzDW.+wVf0wbgVySsNsyPom--