NicZU
New Contributor
5 years agoquartus_sh not preserving arguments
Hi everyone,
I am trying to pass a JSON string to a tcl script interpreted by quartus_sh so I call:
> quartus_sh -t myscript.tcl -json {{"id":310741,"iid":350,"project_id":75039,"title":"Random Title","description":"Random Description"}}
Inside myscript.tcl I retrieve the args through quartus(args) but it looks like they have been modified. All quotes disappear and parentheses are preceded by a backslash. Indeed if I print them I get:
> puts $quartus(args)
-json \{\{id:310741,iid:350,project_id:75039,title:Random Title,description:Random Description\}\}
It looks to me this is some kind of regexp....
Is there a way to get the original string without any modification?
Thanks!