If you add to your config e.g. bash -c "echo foo", it gets turned into mon "bash -c "echo foo"" which means the inner quotes essentially get ignored and the running process will look like mon bash -c echo foo, when it should look like mon bash -c "echo foo".
The fix is to escape the inner quotes, the user can do this manually but I think we should probably do this for them. I wonder if it is as simple as simply replacing " with \"?
If you add to your config e.g.
bash -c "echo foo", it gets turned intomon "bash -c "echo foo""which means the inner quotes essentially get ignored and the running process will look likemon bash -c echo foo, when it should look likemon bash -c "echo foo".The fix is to escape the inner quotes, the user can do this manually but I think we should probably do this for them. I wonder if it is as simple as simply replacing
"with\"?