how to use the set command with variables with spaces?

This related to my post on spcc command issues from pyscript. I’m finding to see if I can set sensor and filter variables and then run spcc. Alas I’m stumped to how the command handles spaces for the variable as most sensors and filter names use spaces (yuck).

From the command line in the siril gui I tried the following.

set photometry.monosensorpref=KAF8300
get photometry.monosensorpref
20:46:37: photometry.monosensorpref = KAF8300

However I can not figure out how to set it to Sony IMX183 i.e. with a space
set photometry.monosensorpref=Sony IMX183
get photometry.monosensorpref
20:48:24: photometry.monosensorpref = Sony

set photometry.monosensorpref=“Sony IMX183”
get photometry.monosensorpref
20:50:18: photometry.monosensorpref = "Sony

set photometry.monosensorpref = ‘Sony IMX183’
get photometry.monosensorpref
20:51:32: photometry.monosensorpref = 'Sony

set photometry.monosensorpref=“Sony%20IMX183”
get photometry.monosensorpref
20:53:00: photometry.monosensorpref = “Sony%20IMX183”

set photometry.monosensorpref=‘Sony%20IMX183’
get photometry.monosensorpref
20:53:00: photometry.monosensorpref = ‘Sony%20IMX183’

set photometry.monosensorpref=Sony%20IMX183
get photometry.monosensorpref
20:54:10: photometry.monosensorpref = Sony%20IMX183

If I open the spcc dialog and select Sony IMX183 then get photometry.monosensorpref reports it correctly. What is the method to set variables like this?

From the manual
set { -import=inifilepath | variable=value }

Updates a setting value, using its variable name, with the given value, or a set of values using an existing ini file with -import= option.

The correct syntax is

set "photometry.monosensorpref=Sony IMX183”

The whole option needs to be enclosed within quotes, not just the value. There’s a tip about that at the top the commands reference documentation: Commands — Siril 1.4.0 documentation

Many thanks.

I saw a similar note in the spcc command help page, so I should have tried that.