Am Fri, 13 Mar 2020 15:26:33 +0100 schrieb Daniel Kiper <dki...@net-space.pl>:
> Adding Vladimir. There is a chance that he knows why it was added... I just checked why this did not show up earlier. With 20190718T143316.4e75b2ae3 and command "linux ($root)/file var='str'" nothing is escaped. The command "linux ($root)/boot/vmlinuz ${cmdline} var="str" var='str'" from my earlier example results in this cmdline: BOOT_IMAGE=(hd0,msdos2)/boot/vmlinuz \"str1\" \'str2\' console=ttyS0,115200 quiet var=str var=str I just noticed now that in the production code I use since months the single quotes disappeared, and the consumers of /proc/cmdline do not care about this detail. So in the end I may just remove the existing single quote from my code any everything should work fine for the consumers of /proc/cmdline. Olaf
pgptoqDfcPNbA.pgp
Description: Digitale Signatur von OpenPGP
_______________________________________________ Grub-devel mailing list Grub-devel@gnu.org https://lists.gnu.org/mailman/listinfo/grub-devel