save(filename, ["a" "b" "c"..]) should be allowed
Reported by Samuel GOUGEON (@sgougeon)
When the list of names of variables to be recorded is built in a vector
of strings (for instance from who('local')), there is presently no way
to run the save() command, but using an execstr("save(..)").
-->save(filename, ["a" "b"]) // fails
Warning: Scilab 6 will not support the file format used.
Warning: Please quote the variable declaration. Example, save('myData.sod',a) becomes save('myData.sod','a').
Warning: See help('save') for the rational.
!--error 248
Wrong value for argument 2: Valid variable name expected.
L = ["a" "b" ];
save(filename, L) // fails: L is presently saved, instead of related variables
-->save(filename,L)
Warning: Scilab 6 will not support the file format used.
Warning: Please quote the variable declaration. Example, save('myData.sod',a) becomes save('myData.sod','a').
Warning: See help('save') for the rational.
L = vec2list(L); // ==> Same issue
-->save(filename,list("a","b"))
Warning: Scilab 6 will not support the file format used.
Warning: Please quote the variable declaration. Example, save('myData.sod',a) becomes save('myData.sod','a').
Warning: See help('save') for the rational.
!--error 248
Wrong value for argument 2: Valid variable name expected.
// ----------
a = %pi; b = %t;
save("tmp.sod", ["a" "b"])
save("tmp.sod", list("a","b"))