{"action":"created","issue":{"url":"https://api.github.com/repos/vorpaljs/bash-parser/issues/60","repository_url":"https://api.github.com/repos/vorpaljs/bash-parser","labels_url":"https://api.github.com/repos/vorpaljs/bash-parser/issues/60/labels{/name}","comments_url":"https://api.github.com/repos/vorpaljs/bash-parser/issues/60/comments","events_url":"https://api.github.com/repos/vorpaljs/bash-parser/issues/60/events","html_url":"https://github.com/vorpaljs/bash-parser/issues/60","id":367144169,"node_id":"MDU6SXNzdWUzNjcxNDQxNjk=","number":60,"title":"AST does not distinguish double and single quotes? ","user":{"login":"njlr","id":1577531,"node_id":"MDQ6VXNlcjE1Nzc1MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1577531?v=4","gravatar_id":"","url":"https://api.github.com/users/njlr","html_url":"https://github.com/njlr","followers_url":"https://api.github.com/users/njlr/followers","following_url":"https://api.github.com/users/njlr/following{/other_user}","gists_url":"https://api.github.com/users/njlr/gists{/gist_id}","starred_url":"https://api.github.com/users/njlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njlr/subscriptions","organizations_url":"https://api.github.com/users/njlr/orgs","repos_url":"https://api.github.com/users/njlr/repos","events_url":"https://api.github.com/users/njlr/events{/privacy}","received_events_url":"https://api.github.com/users/njlr/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-10-05T10:06:44Z","updated_at":"2018-10-06T08:35:16Z","closed_at":null,"author_association":"NONE","body":"```javascript=\r\n> var parse = require('bash-parser')\r\nundefined\r\n> parse('echo \\'Hello, world. \\' ').commands[0].suffix[0]\r\n{ text: 'Hello, world. ', type: 'Word' }\r\n> parse('echo \"Hello, world. \" ').commands[0].suffix[0]\r\n{ text: 'Hello, world. ', type: 'Word' }\r\n```\r\n\r\nIt seems that the AST does not encode if single or double quotes were used. However, this is important information since they have different behaviour. \r\n\r\nIs there a way to get this information? \r\n\r\nSomething like this would be ideal: \r\n\r\n```javascript=\r\n> parse('echo \"Hello, world. \" ').commands[0].suffix[0]\r\n{ text: 'Hello, world. ', type: 'Word', quoteStyle: 'double' }\r\n```"},"comment":{"url":"https://api.github.com/repos/vorpaljs/bash-parser/issues/comments/427556882","html_url":"https://github.com/vorpaljs/bash-parser/issues/60#issuecomment-427556882","issue_url":"https://api.github.com/repos/vorpaljs/bash-parser/issues/60","id":427556882,"node_id":"MDEyOklzc3VlQ29tbWVudDQyNzU1Njg4Mg==","user":{"login":"njlr","id":1577531,"node_id":"MDQ6VXNlcjE1Nzc1MzE=","avatar_url":"https://avatars2.githubusercontent.com/u/1577531?v=4","gravatar_id":"","url":"https://api.github.com/users/njlr","html_url":"https://github.com/njlr","followers_url":"https://api.github.com/users/njlr/followers","following_url":"https://api.github.com/users/njlr/following{/other_user}","gists_url":"https://api.github.com/users/njlr/gists{/gist_id}","starred_url":"https://api.github.com/users/njlr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/njlr/subscriptions","organizations_url":"https://api.github.com/users/njlr/orgs","repos_url":"https://api.github.com/users/njlr/repos","events_url":"https://api.github.com/users/njlr/events{/privacy}","received_events_url":"https://api.github.com/users/njlr/received_events","type":"User","site_admin":false},"created_at":"2018-10-06T08:35:16Z","updated_at":"2018-10-06T08:35:16Z","author_association":"NONE","body":"Ah, I hadn't noticed the `expansion` property! 🤦\r\n\r\nI will investigate further... "}}
{"actor":{"display_login":"njlr"}}