{"action":"created","issue":{"url":"https://api.github.com/repos/atom/atom/issues/9169","repository_url":"https://api.github.com/repos/atom/atom","labels_url":"https://api.github.com/repos/atom/atom/issues/9169/labels{/name}","comments_url":"https://api.github.com/repos/atom/atom/issues/9169/comments","events_url":"https://api.github.com/repos/atom/atom/issues/9169/events","html_url":"https://github.com/atom/atom/issues/9169","id":111770281,"number":9169,"title":"What Unix-on-Windows platforms are supported?","user":{"login":"apjanke","id":2618447,"avatar_url":"https://avatars.githubusercontent.com/u/2618447?v=3","gravatar_id":"","url":"https://api.github.com/users/apjanke","html_url":"https://github.com/apjanke","followers_url":"https://api.github.com/users/apjanke/followers","following_url":"https://api.github.com/users/apjanke/following{/other_user}","gists_url":"https://api.github.com/users/apjanke/gists{/gist_id}","starred_url":"https://api.github.com/users/apjanke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apjanke/subscriptions","organizations_url":"https://api.github.com/users/apjanke/orgs","repos_url":"https://api.github.com/users/apjanke/repos","events_url":"https://api.github.com/users/apjanke/events{/privacy}","received_events_url":"https://api.github.com/users/apjanke/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/atom/atom/labels/windows","name":"windows","color":"c7def8"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-16T06:29:47Z","updated_at":"2016-03-09T21:14:56Z","closed_at":"2016-03-09T21:14:56Z","body":"I installed Atom on Windows 7 today, and its installation came with `atom` and `atom.sh` Unix shell scripts. I assume these are intended to be usable on Windows, since they reference `.exe` files.\r\n\r\nWhen I try to run `atom` under Cygwin, it produces a syntax error, because the sh script files are installed with DOS mode CRLF line endings.\r\n\r\n```\r\n$ atom foo.txt\r\n/cygdrive/c/Users/janke/AppData/Local/atom/bin/../app-1.0.19/resources/cli/atom.sh: line 2: $'\\r': command not found\r\n/cygdrive/c/Users/janke/AppData/Local/atom/bin/../app-1.0.19/resources/cli/atom.sh: line 4: syntax error near unexpected token `$'in\\r''\r\n/cygdrive/c/Users/janke/AppData/Local/atom/bin/../app-1.0.19/resources/cli/atom.'h: line 4: `  case \"$opt\" in\r\n```\r\n\r\nBut it seems to run okay under MinGW. Is this intentional? Is only MinGW supported, and not Cygwin?\r\n\r\nThe current `atom.sh` script is confusing on this point. It [tests for MinGW, but then calls it Cygwin](https://github.com/atom/atom/blob/21aee18911ea33f0e4ff416f8f3b14c6ac51385e/atom.sh#L7-L8). And there is no branch for Cygwin or MinGW in [the following platform-specific `if` logic that actually launches the program](https://github.com/atom/atom/blob/21aee18911ea33f0e4ff416f8f3b14c6ac51385e/atom.sh#L53-L113).\r\n\r\n```bash\r\nelif [ \"$(expr substr $(uname -s) 1 10)\" == 'MINGW32_NT' ]; then\r\n  OS='Cygwin'\r\n```\r\n\r\nIt would be nice to have the requirements/compatibility for the Unix-on-Windows environments mentioned in the documentation. I couldn't find it in the Flight Manual or through some brief searches of the documentation site. It would be nice to have Cygwin supported out of the box, too."},"comment":{"url":"https://api.github.com/repos/atom/atom/issues/comments/194509408","html_url":"https://github.com/atom/atom/issues/9169#issuecomment-194509408","issue_url":"https://api.github.com/repos/atom/atom/issues/9169","id":194509408,"user":{"login":"damieng","id":118951,"avatar_url":"https://avatars.githubusercontent.com/u/118951?v=3","gravatar_id":"","url":"https://api.github.com/users/damieng","html_url":"https://github.com/damieng","followers_url":"https://api.github.com/users/damieng/followers","following_url":"https://api.github.com/users/damieng/following{/other_user}","gists_url":"https://api.github.com/users/damieng/gists{/gist_id}","starred_url":"https://api.github.com/users/damieng/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/damieng/subscriptions","organizations_url":"https://api.github.com/users/damieng/orgs","repos_url":"https://api.github.com/users/damieng/repos","events_url":"https://api.github.com/users/damieng/events{/privacy}","received_events_url":"https://api.github.com/users/damieng/received_events","type":"User","site_admin":false},"created_at":"2016-03-09T21:14:56Z","updated_at":"2016-03-09T21:14:56Z","body":"Thanks for this information.\r\n\r\nThe next release (1,7) has atom.sh exactly calling atom.cmd passing along the command-line args. It has been tested on Cygwin (supported) and MSYS2 (not officially supported)."}}