{"action":"created","issue":{"url":"https://api.github.com/repos/git-for-windows/git/issues/546","labels_url":"https://api.github.com/repos/git-for-windows/git/issues/546/labels{/name}","comments_url":"https://api.github.com/repos/git-for-windows/git/issues/546/comments","events_url":"https://api.github.com/repos/git-for-windows/git/issues/546/events","html_url":"https://github.com/git-for-windows/git/issues/546","id":118523264,"number":546,"title":"[Feature Request] Add support for running other filetypes, like .cmd or .js","user":{"login":"jamesqo","id":9159214,"avatar_url":"https://avatars.githubusercontent.com/u/9159214?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesqo","html_url":"https://github.com/jamesqo","followers_url":"https://api.github.com/users/jamesqo/followers","following_url":"https://api.github.com/users/jamesqo/following{/other_user}","gists_url":"https://api.github.com/users/jamesqo/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesqo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesqo/subscriptions","organizations_url":"https://api.github.com/users/jamesqo/orgs","repos_url":"https://api.github.com/users/jamesqo/repos","events_url":"https://api.github.com/users/jamesqo/events{/privacy}","received_events_url":"https://api.github.com/users/jamesqo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-24T03:12:35Z","updated_at":"2015-11-24T08:35:09Z","closed_at":null,"body":"It would be nice if Git Bash were able to run other executable filetypes (all the ones in `$PATHEXT`), like .js, in `$PATH` without having to switch to CMD.\r\n\r\nFor example, for .cmd files Git Bash would run something analogous to this:\r\n\r\n```bash\r\ncmd /c \"$file.cmd\"\r\n```"},"comment":{"url":"https://api.github.com/repos/git-for-windows/git/issues/comments/159195402","html_url":"https://github.com/git-for-windows/git/issues/546#issuecomment-159195402","issue_url":"https://api.github.com/repos/git-for-windows/git/issues/546","id":159195402,"user":{"login":"dscho","id":127790,"avatar_url":"https://avatars.githubusercontent.com/u/127790?v=3","gravatar_id":"","url":"https://api.github.com/users/dscho","html_url":"https://github.com/dscho","followers_url":"https://api.github.com/users/dscho/followers","following_url":"https://api.github.com/users/dscho/following{/other_user}","gists_url":"https://api.github.com/users/dscho/gists{/gist_id}","starred_url":"https://api.github.com/users/dscho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dscho/subscriptions","organizations_url":"https://api.github.com/users/dscho/orgs","repos_url":"https://api.github.com/users/dscho/repos","events_url":"https://api.github.com/users/dscho/events{/privacy}","received_events_url":"https://api.github.com/users/dscho/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T08:35:09Z","updated_at":"2015-11-24T08:35:09Z","body":"@jamesqo if we were overrun with volunteers, you could reasonably hope for others to fulfill your wishes.\r\n\r\nBut there is hope! It is relatively easy for a motivated contributor to implement this feature. You can be that motivated contributor. All you need to do is to use the information on [this page](https://github.com/git-for-windows/git/wiki/Package-management#rebuild-packages) to rebuild the `bash` package, then look through the source code in `/usr/src/MSYS2-packages/bash/src/bash-4.3/` where scripts are launched (`grep` is your friend) and patch that to handle `.cmd`, `.bat` and `.js` files specially. If you get stuck anywhere, I will assist you. "}}