Shell command and quoted strings

I am trying to pass a double quoted string to a bash script through the shell command but the quotes vanish when the bash script is reading its arguments. Is there anything special to get this to work?

For example, when running the following code,


c="bash -c 'myscript.sh ""some string with spaces"" ' "
shell(c)

the bash script sees 4 arguments instead of a single quoted string. In the scenario where the # of arguments may vary, I’d like to be able to see the quoted strings in bash. Alternatively, can the spaces be escaped?

Thanks.