{"action":"created","issue":{"url":"https://api.github.com/repos/idank/explainshell/issues/134","labels_url":"https://api.github.com/repos/idank/explainshell/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/idank/explainshell/issues/134/comments","events_url":"https://api.github.com/repos/idank/explainshell/issues/134/events","html_url":"https://github.com/idank/explainshell/issues/134","id":104679291,"number":134,"title":"Strange output for parse error","user":{"login":"brother","id":243351,"avatar_url":"https://avatars.githubusercontent.com/u/243351?v=3","gravatar_id":"","url":"https://api.github.com/users/brother","html_url":"https://github.com/brother","followers_url":"https://api.github.com/users/brother/followers","following_url":"https://api.github.com/users/brother/following{/other_user}","gists_url":"https://api.github.com/users/brother/gists{/gist_id}","starred_url":"https://api.github.com/users/brother/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brother/subscriptions","organizations_url":"https://api.github.com/users/brother/orgs","repos_url":"https://api.github.com/users/brother/repos","events_url":"https://api.github.com/users/brother/events{/privacy}","received_events_url":"https://api.github.com/users/brother/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-03T12:25:22Z","updated_at":"2015-09-03T18:43:50Z","closed_at":"2015-09-03T18:43:50Z","body":"Looks like all (? at least the few I tested) parse errors will return the same error and it's not super helpful.\r\n\r\nExample in  http://explainshell.com/explain?cmd=if+false or http://explainshell.com/explain?cmd=while+true"},"comment":{"url":"https://api.github.com/repos/idank/explainshell/issues/comments/137539059","html_url":"https://github.com/idank/explainshell/issues/134#issuecomment-137539059","issue_url":"https://api.github.com/repos/idank/explainshell/issues/134","id":137539059,"user":{"login":"idank","id":1277636,"avatar_url":"https://avatars.githubusercontent.com/u/1277636?v=3","gravatar_id":"","url":"https://api.github.com/users/idank","html_url":"https://github.com/idank","followers_url":"https://api.github.com/users/idank/followers","following_url":"https://api.github.com/users/idank/following{/other_user}","gists_url":"https://api.github.com/users/idank/gists{/gist_id}","starred_url":"https://api.github.com/users/idank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/idank/subscriptions","organizations_url":"https://api.github.com/users/idank/orgs","repos_url":"https://api.github.com/users/idank/repos","events_url":"https://api.github.com/users/idank/events{/privacy}","received_events_url":"https://api.github.com/users/idank/received_events","type":"User","site_admin":false},"created_at":"2015-09-03T18:43:50Z","updated_at":"2015-09-03T18:43:50Z","body":"Yeah, unfortunately the errors aren't as descriptive as one would expect. The observant reader will notice that this is similar to how bash's lack of user-friendly errors as well (since explainshell uses a port of its parser):\r\n\r\n$ bash -c 'if false'\r\nbash: -c: line 1: syntax error: unexpected end of file\r\n\r\nI believe a certain class of errors do print slightly more descriptive messages, like http://explainshell.com/explain?cmd=if+foo%3B+done"}}