{"action":"opened","issue":{"url":"https://api.github.com/repos/pstadler/flightplan/issues/99","labels_url":"https://api.github.com/repos/pstadler/flightplan/issues/99/labels{/name}","comments_url":"https://api.github.com/repos/pstadler/flightplan/issues/99/comments","events_url":"https://api.github.com/repos/pstadler/flightplan/issues/99/events","html_url":"https://github.com/pstadler/flightplan/issues/99","id":99192160,"number":99,"title":"Quotes in sudo commands should be escaped","user":{"login":"mik01aj","id":3027415,"avatar_url":"https://avatars.githubusercontent.com/u/3027415?v=3","gravatar_id":"","url":"https://api.github.com/users/mik01aj","html_url":"https://github.com/mik01aj","followers_url":"https://api.github.com/users/mik01aj/followers","following_url":"https://api.github.com/users/mik01aj/following{/other_user}","gists_url":"https://api.github.com/users/mik01aj/gists{/gist_id}","starred_url":"https://api.github.com/users/mik01aj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mik01aj/subscriptions","organizations_url":"https://api.github.com/users/mik01aj/orgs","repos_url":"https://api.github.com/users/mik01aj/repos","events_url":"https://api.github.com/users/mik01aj/events{/privacy}","received_events_url":"https://api.github.com/users/mik01aj/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-08-05T12:18:42Z","updated_at":"2015-08-05T12:18:42Z","closed_at":null,"body":"In my flightplan, when I do:\r\n\r\n    remote.sudo('node -e \\'console.log(\"hello\")\\'', {user: 'blabla'})\r\n\r\nI get an error:\r\n\r\n```\r\nremote $ sudo -u blabla -i bash -c 'node -e 'console.log(\"hello\")''\r\nremote > bash: -c: line 0: syntax error near unexpected token `('\r\nremote > bash: -c: line 0: `sudo -u blabla -i bash -c 'node -e 'console.log(\"hello\")'''\r\n```"}}