Re: [PATCH v2 3/3] tools/bootconfig: Preserve values containing both types of quotes

From
Masami Hiramatsu (Google) <mhiramat@kernel.org>
Date
2026-11-13 05:21:24
Also in
lkml
Reply to
Eduardo Mucelli Rezende Oliveira, 2026-11-10
On Tue, 10 Nov 2026 20:08:47 +0100, Eduardo Mucelli Rezende Oliveira [off-list ref] 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) [off-list ref]
Thread (17 messages) 17 messages, 3 authors, last reply 12h ago
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help