{"action":"created","issue":{"url":"https://api.github.com/repos/typicode/hotel/issues/182","repository_url":"https://api.github.com/repos/typicode/hotel","labels_url":"https://api.github.com/repos/typicode/hotel/issues/182/labels{/name}","comments_url":"https://api.github.com/repos/typicode/hotel/issues/182/comments","events_url":"https://api.github.com/repos/typicode/hotel/issues/182/events","html_url":"https://github.com/typicode/hotel/issues/182","id":215151209,"number":182,"title":"Bug: Issue with single-quote using Command Prompt on Windows","user":{"login":"bitstrider","id":143295,"avatar_url":"https://avatars0.githubusercontent.com/u/143295?v=3","gravatar_id":"","url":"https://api.github.com/users/bitstrider","html_url":"https://github.com/bitstrider","followers_url":"https://api.github.com/users/bitstrider/followers","following_url":"https://api.github.com/users/bitstrider/following{/other_user}","gists_url":"https://api.github.com/users/bitstrider/gists{/gist_id}","starred_url":"https://api.github.com/users/bitstrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitstrider/subscriptions","organizations_url":"https://api.github.com/users/bitstrider/orgs","repos_url":"https://api.github.com/users/bitstrider/repos","events_url":"https://api.github.com/users/bitstrider/events{/privacy}","received_events_url":"https://api.github.com/users/bitstrider/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-03-18T00:18:26Z","updated_at":"2017-03-18T18:52:07Z","closed_at":null,"body":"Anyone else having this issue using hotel on Command Prompt with single-quotes (`'`)?\r\n`> hotel run 'node server.js'`\r\n`> hotel add 'node server.js'`\r\n\r\nThis produces the following...\r\n```\r\n''node' is not recognized as an internal or external command,\r\noperable program or batch file.\r\n```\r\n...where the leading single-quote (`'`) is not parsed out\r\n\r\nNo issues when usng double-quotes (`\"`) to wrap the command"},"comment":{"url":"https://api.github.com/repos/typicode/hotel/issues/comments/287566651","html_url":"https://github.com/typicode/hotel/issues/182#issuecomment-287566651","issue_url":"https://api.github.com/repos/typicode/hotel/issues/182","id":287566651,"user":{"login":"bitstrider","id":143295,"avatar_url":"https://avatars0.githubusercontent.com/u/143295?v=3","gravatar_id":"","url":"https://api.github.com/users/bitstrider","html_url":"https://github.com/bitstrider","followers_url":"https://api.github.com/users/bitstrider/followers","following_url":"https://api.github.com/users/bitstrider/following{/other_user}","gists_url":"https://api.github.com/users/bitstrider/gists{/gist_id}","starred_url":"https://api.github.com/users/bitstrider/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitstrider/subscriptions","organizations_url":"https://api.github.com/users/bitstrider/orgs","repos_url":"https://api.github.com/users/bitstrider/repos","events_url":"https://api.github.com/users/bitstrider/events{/privacy}","received_events_url":"https://api.github.com/users/bitstrider/received_events","type":"User","site_admin":false},"created_at":"2017-03-18T18:52:07Z","updated_at":"2017-03-18T18:52:07Z","body":"After digging a little deeper, looks like `process.argv` gets bungled by the single-quote from Command Prompt:\r\n\r\n```\r\n> hotel run 'node server.js'\r\n// process.argv => ['hotel', 'run', '\\'node', 'server.js\\'']\r\n```\r\n\r\nThis is quite different/bad in contrast what you get from other terminal programs on Windows (e.g. **GitBash** or **Hyper**).  Unless you wanted to support this edge case, perhaps the best solution is to avoid Command Prompt completely 😃"}}
{"actor":{"display_login":"bitstrider"}}