Comment #1 by andrej.mitrovich — 2014-05-09T15:46:04Z
Not sure if an actual bug, but in any case there's escapeShellCommand for this. It should probably be mentioned in the executeShell docs (escapeShellFileName docs reference executeShell, but not the other way around).
Comment #2 by moonburntm — 2014-05-10T00:58:41Z
It seems that executeShell("echo \"quoted statement 1\" \"quoted statement 1\" \"quoted statement 3\"").output returns
"quoted statement 1" "quoted statement 1" "quoted statement 3
whereas executeShell("echo \"quoted statement 1\" \"quoted statement 1\" \"quoted statement 3\"\"").output returns
"quoted statement 1" "quoted statement 1" "quoted statement 3"
So it's only the last one that doesn't escape properly.