redefining password and username way to fetch from subversion

When I try to deploy using subversion the string that is generated for the command svn info is 

    svn info https://svn.mydomain.com/my_repo --username \"myusername"\--password \"mypassword\"--no-auth-cache  -rHEAD

this causes the command not to work properly. So I changed the double quotes for single quotes and gave some spaces at the code so the string now is

    svn info https://svn.mydomain.com/my_repo --username 'myusername' --password 'mypassword' --no-auth-cache  -rHEAD

This issue happened with versions 2.0.0-p247 and 1.9.3-p448