Re: [PATCH v2 3/3] tools/bootconfig: Preserve values containing both types of quotes
From: Masami Hiramatsu (Google)
Date: Fri Nov 13 2026 - 02:01:03 EST
On Tue, 10 Nov 2026 20:08:47 +0100, Eduardo Mucelli Rezende Oliveira <edumucelli@xxxxxxxxx> wrote:
> An unquoted bootconfig value can contain both single and double quote
> characters, for example:
>
> message = He said "it's fine"
Nack, I would not like to support this unclear value in bootconfig file.
It is OK to *detect* this kind of mixing value as a wrong value, but to
support this, we should support escaped quotes and force user to quote the
string.
message = 'He said "it\'s fine"'
But is there any actual usage for supporting this syntax? I would like to
keep the bootconfig as simple as possible.
>
> xbc_show_value() surrounds any value containing a double quote with
> single quotes. If the value also contains a single quote, both compact
> [...]
Thanks,
--
Masami Hiramatsu (Google) <mhiramat@xxxxxxxxxx>