{"action":"created","issue":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1772","labels_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1772/labels{/name}","comments_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1772/comments","events_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1772/events","html_url":"https://github.com/ipfs/go-ipfs/pull/1772","id":109175350,"number":1772,"title":"Shell quote","user":{"login":"chriscool","id":208954,"avatar_url":"https://avatars.githubusercontent.com/u/208954?v=3","gravatar_id":"","url":"https://api.github.com/users/chriscool","html_url":"https://github.com/chriscool","followers_url":"https://api.github.com/users/chriscool/followers","following_url":"https://api.github.com/users/chriscool/following{/other_user}","gists_url":"https://api.github.com/users/chriscool/gists{/gist_id}","starred_url":"https://api.github.com/users/chriscool/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chriscool/subscriptions","organizations_url":"https://api.github.com/users/chriscool/orgs","repos_url":"https://api.github.com/users/chriscool/repos","events_url":"https://api.github.com/users/chriscool/events{/privacy}","received_events_url":"https://api.github.com/users/chriscool/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ipfs/go-ipfs/labels/in%20progress","name":"in progress","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":10,"created_at":"2015-09-30T20:42:18Z","updated_at":"2015-10-03T21:11:28Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ipfs/go-ipfs/pulls/1772","html_url":"https://github.com/ipfs/go-ipfs/pull/1772","diff_url":"https://github.com/ipfs/go-ipfs/pull/1772.diff","patch_url":"https://github.com/ipfs/go-ipfs/pull/1772.patch"},"body":"Fix shellquote() implementation and add tests as discussed in PR #1757.\r\nThanks @ion1!"},"comment":{"url":"https://api.github.com/repos/ipfs/go-ipfs/issues/comments/145291310","html_url":"https://github.com/ipfs/go-ipfs/pull/1772#issuecomment-145291310","issue_url":"https://api.github.com/repos/ipfs/go-ipfs/issues/1772","id":145291310,"user":{"login":"ion1","id":39660,"avatar_url":"https://avatars.githubusercontent.com/u/39660?v=3","gravatar_id":"","url":"https://api.github.com/users/ion1","html_url":"https://github.com/ion1","followers_url":"https://api.github.com/users/ion1/followers","following_url":"https://api.github.com/users/ion1/following{/other_user}","gists_url":"https://api.github.com/users/ion1/gists{/gist_id}","starred_url":"https://api.github.com/users/ion1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ion1/subscriptions","organizations_url":"https://api.github.com/users/ion1/orgs","repos_url":"https://api.github.com/users/ion1/repos","events_url":"https://api.github.com/users/ion1/events{/privacy}","received_events_url":"https://api.github.com/users/ion1/received_events","type":"User","site_admin":false},"created_at":"2015-10-03T21:11:28Z","updated_at":"2015-10-03T21:11:28Z","body":"Since you’re working around the newline issue with a wrapping printf, I wonder if you could just do `printf \"'%s'\"` in the wrapper and get the `s/^/'/; s/$/'/` out of the sed expression? I understand we have given up on handling newlines given that some shells have trouble with them, but even trying to split a single parameter into two at newlines (which the `s///`s result in) is still wrong."}}