{"action":"created","issue":{"url":"https://api.github.com/repos/peterhuene/puppetcpp/issues/63","labels_url":"https://api.github.com/repos/peterhuene/puppetcpp/issues/63/labels{/name}","comments_url":"https://api.github.com/repos/peterhuene/puppetcpp/issues/63/comments","events_url":"https://api.github.com/repos/peterhuene/puppetcpp/issues/63/events","html_url":"https://github.com/peterhuene/puppetcpp/pull/63","id":103151792,"number":63,"title":"(Functions) First stab at shellquote function","user":{"login":"iankronquist","id":5192353,"avatar_url":"https://avatars.githubusercontent.com/u/5192353?v=3","gravatar_id":"","url":"https://api.github.com/users/iankronquist","html_url":"https://github.com/iankronquist","followers_url":"https://api.github.com/users/iankronquist/followers","following_url":"https://api.github.com/users/iankronquist/following{/other_user}","gists_url":"https://api.github.com/users/iankronquist/gists{/gist_id}","starred_url":"https://api.github.com/users/iankronquist/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/iankronquist/subscriptions","organizations_url":"https://api.github.com/users/iankronquist/orgs","repos_url":"https://api.github.com/users/iankronquist/repos","events_url":"https://api.github.com/users/iankronquist/events{/privacy}","received_events_url":"https://api.github.com/users/iankronquist/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-08-26T01:48:48Z","updated_at":"2015-11-17T23:41:49Z","closed_at":"2015-11-17T21:16:32Z","pull_request":{"url":"https://api.github.com/repos/peterhuene/puppetcpp/pulls/63","html_url":"https://github.com/peterhuene/puppetcpp/pull/63","diff_url":"https://github.com/peterhuene/puppetcpp/pull/63.diff","patch_url":"https://github.com/peterhuene/puppetcpp/pull/63.patch"},"body":"You can just smell the ruby coming off this function. There's other weirdness too but it works out of the box:\r\n```\r\niankronquist@puppettop:(ttest) → cat shellquote/bar.pp \r\n$a = 'rm -rf *'\r\n$b = '$(boot2docker shellinit)'\r\n$c = \"alias jcheck=\\\"python -c 'import json; import sys; print(json.load(open(sys.argv[1])))'\\\"\"\r\n$d = \"!'\\\"$`\"\r\nnotice shellquote($a)\r\nnotice shellquote($b)\r\nnotice shellquote($c)\r\nnotice shellquote($d)\r\niankronquist@puppettop:(ttest) → ~/gg/puppetcpp/debug/bin/puppetcpp shellquote/bar.pp \r\nNotice: compiling for node 'puppettop.delivery.puppetlabs.net' with environment 'production'.\r\nNotice: Scope(Class[main]): \"rm -rf *\" \r\nNotice: Scope(Class[main]): '$(boot2docker shellinit)' \r\nNotice: Scope(Class[main]): \"alias jcheck=\\\"python -c 'import json; import sys; print(json.load(open(sys.argv[1])))'\\\"\" \r\nNotice: Scope(Class[main]): \"\\!'\\\"\\$\\`\" \r\nNotice: compilation succeeded with 0 errors and 0 warnings.\r\n```"},"comment":{"url":"https://api.github.com/repos/peterhuene/puppetcpp/issues/comments/157546432","html_url":"https://github.com/peterhuene/puppetcpp/pull/63#issuecomment-157546432","issue_url":"https://api.github.com/repos/peterhuene/puppetcpp/issues/63","id":157546432,"user":{"login":"peterhuene","id":509666,"avatar_url":"https://avatars.githubusercontent.com/u/509666?v=3","gravatar_id":"","url":"https://api.github.com/users/peterhuene","html_url":"https://github.com/peterhuene","followers_url":"https://api.github.com/users/peterhuene/followers","following_url":"https://api.github.com/users/peterhuene/following{/other_user}","gists_url":"https://api.github.com/users/peterhuene/gists{/gist_id}","starred_url":"https://api.github.com/users/peterhuene/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/peterhuene/subscriptions","organizations_url":"https://api.github.com/users/peterhuene/orgs","repos_url":"https://api.github.com/users/peterhuene/repos","events_url":"https://api.github.com/users/peterhuene/events{/privacy}","received_events_url":"https://api.github.com/users/peterhuene/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T23:41:49Z","updated_at":"2015-11-17T23:41:49Z","body":"No worries, @iankronquist, as you've already provided a great implementation of `versioncmp`, so you've been extraordinarily helpful.  I will get to merging this one in eventually, I promise."}}