{"action":"created","issue":{"url":"https://api.github.com/repos/openwdl/wdl/issues/230","repository_url":"https://api.github.com/repos/openwdl/wdl","labels_url":"https://api.github.com/repos/openwdl/wdl/issues/230/labels{/name}","comments_url":"https://api.github.com/repos/openwdl/wdl/issues/230/comments","events_url":"https://api.github.com/repos/openwdl/wdl/issues/230/events","html_url":"https://github.com/openwdl/wdl/pull/230","id":340927881,"node_id":"MDExOlB1bGxSZXF1ZXN0MjAxMjIwOTE1","number":230,"title":"Add a escape library function to pass strings to bash unsurprisingly","user":{"login":"EvanTheB","id":1685400,"node_id":"MDQ6VXNlcjE2ODU0MDA=","avatar_url":"https://avatars3.githubusercontent.com/u/1685400?v=4","gravatar_id":"","url":"https://api.github.com/users/EvanTheB","html_url":"https://github.com/EvanTheB","followers_url":"https://api.github.com/users/EvanTheB/followers","following_url":"https://api.github.com/users/EvanTheB/following{/other_user}","gists_url":"https://api.github.com/users/EvanTheB/gists{/gist_id}","starred_url":"https://api.github.com/users/EvanTheB/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EvanTheB/subscriptions","organizations_url":"https://api.github.com/users/EvanTheB/orgs","repos_url":"https://api.github.com/users/EvanTheB/repos","events_url":"https://api.github.com/users/EvanTheB/events{/privacy}","received_events_url":"https://api.github.com/users/EvanTheB/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-07-13T08:27:28Z","updated_at":"2018-07-19T20:10:25Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/openwdl/wdl/pulls/230","html_url":"https://github.com/openwdl/wdl/pull/230","diff_url":"https://github.com/openwdl/wdl/pull/230.diff","patch_url":"https://github.com/openwdl/wdl/pull/230.patch"},"body":"Currently in wdl there is no way to pass a string to the command and know that bash will treat it as a single argument / token. EG if a file has a space, a surprising character (null or newline or '). Implementation needs to be well thought out, but I think the spec can be simple. \r\n\r\nThis should be so common it might be sensible to make this an operator for command and string interpolation something like \"%{}\" (I have not checked if bash uses %, just as an example. Not wanting to repeat the $ and {} mistake)\r\n\r\nThe function should probably operate on Arrays. (shouldn't all the functions?)\r\n\r\nhttps://docs.python.org/3/library/shlex.html#shlex.quote"},"comment":{"url":"https://api.github.com/repos/openwdl/wdl/issues/comments/406399010","html_url":"https://github.com/openwdl/wdl/pull/230#issuecomment-406399010","issue_url":"https://api.github.com/repos/openwdl/wdl/issues/230","id":406399010,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjM5OTAxMA==","user":{"login":"geetduggal","id":64425,"node_id":"MDQ6VXNlcjY0NDI1","avatar_url":"https://avatars2.githubusercontent.com/u/64425?v=4","gravatar_id":"","url":"https://api.github.com/users/geetduggal","html_url":"https://github.com/geetduggal","followers_url":"https://api.github.com/users/geetduggal/followers","following_url":"https://api.github.com/users/geetduggal/following{/other_user}","gists_url":"https://api.github.com/users/geetduggal/gists{/gist_id}","starred_url":"https://api.github.com/users/geetduggal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/geetduggal/subscriptions","organizations_url":"https://api.github.com/users/geetduggal/orgs","repos_url":"https://api.github.com/users/geetduggal/repos","events_url":"https://api.github.com/users/geetduggal/events{/privacy}","received_events_url":"https://api.github.com/users/geetduggal/received_events","type":"User","site_admin":false},"created_at":"2018-07-19T20:10:25Z","updated_at":"2018-07-19T20:10:25Z","author_association":"NONE","body":"On initial inspection, I too agree: `quoted` is useful and files are treated as quoted by default makes sense. 👍 The defensive part of me says there's some potential negative consequence of treating files as quoted by default, but I can't think of one at the moment 😄 "}}
{"actor":{"display_login":"geetduggal"}}