One of the frustrating areas when sending commands to a shell is how Jenkins handles quotes. If one of your arguments has a " in it, using ArgumentListBuilder, the whole string gets wrapped in '. If you don't have ", then the result gets wrapped in ". Is there any good practice to force a situation where you are generating /bin/sh -c 'stuff' regardless of what is in stuff. I suspect that this is actually in Launcher.ProcStarter and the way it processes arguments. Pretty frustrating.
The key problem is that some of the arguments may have $ in the front, but that doesn't mean shell variables where I am working and I don't have much control here.
Any advice?
Thanks,
Randall