Skip to content

ini: update all configs with a quote at the start of a value#3947

Draft
BsAtHome wants to merge 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_ini-config-quotes
Draft

ini: update all configs with a quote at the start of a value#3947
BsAtHome wants to merge 1 commit intoLinuxCNC:masterfrom
BsAtHome:fix_ini-config-quotes

Conversation

@BsAtHome
Copy link
Copy Markdown
Contributor

Single or double quotes starting a value in an ini-file will now be interpreted by the new ini-parser as a quoted string. You must escape the quotes or use double/single quotes to embed single/double quotes. Note that this only happens when a single or double quote is found at the start of a value. Otherwise, the whole value is just taken and used as-is.

This PR fixes all existing configs' ini-files where such quotes are used and uses one type of quotes to embed the other: "xyz" => '"xyz"' and 'xyz' => "'xyz'". It also updates the inivalue program (and test) to print the values properly when the --content option is specified, adding quotes around quoted strings.

This fixes #3946 for all existing in-tree configs. User configs need manual intervention for now. The update_ini program needs updating (see #3704) to update quoted strings.

@BsAtHome BsAtHome marked this pull request as draft April 19, 2026 07:07
@BsAtHome BsAtHome force-pushed the fix_ini-config-quotes branch from 38077a9 to abf22d0 Compare April 19, 2026 08:27
@BsAtHome BsAtHome marked this pull request as ready for review April 19, 2026 08:28
@BsAtHome BsAtHome marked this pull request as draft April 19, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

New ini-file parser breaks hm2_eth config on master

1 participant