{"action":"created","issue":{"url":"https://api.github.com/repos/bmatzelle/gow/issues/196","labels_url":"https://api.github.com/repos/bmatzelle/gow/issues/196/labels{/name}","comments_url":"https://api.github.com/repos/bmatzelle/gow/issues/196/comments","events_url":"https://api.github.com/repos/bmatzelle/gow/issues/196/events","html_url":"https://github.com/bmatzelle/gow/issues/196","id":95903644,"number":196,"title":"bash breaks Windows tools by replacing forward slash with a directory path","user":{"login":"alisonatwork","id":660556,"avatar_url":"https://avatars.githubusercontent.com/u/660556?v=3","gravatar_id":"","url":"https://api.github.com/users/alisonatwork","html_url":"https://github.com/alisonatwork","followers_url":"https://api.github.com/users/alisonatwork/followers","following_url":"https://api.github.com/users/alisonatwork/following{/other_user}","gists_url":"https://api.github.com/users/alisonatwork/gists{/gist_id}","starred_url":"https://api.github.com/users/alisonatwork/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alisonatwork/subscriptions","organizations_url":"https://api.github.com/users/alisonatwork/orgs","repos_url":"https://api.github.com/users/alisonatwork/repos","events_url":"https://api.github.com/users/alisonatwork/events{/privacy}","received_events_url":"https://api.github.com/users/alisonatwork/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-19T10:14:16Z","updated_at":"2015-12-19T04:48:46Z","closed_at":null,"body":"It seems like bash is searching through all arguments you give on the command line and prefixing anything that starts with ```/``` with Gow's own fake root directory. Personally i have not seen any real-world use for this \"feature\", though perhaps it is doing it so that shell script references to stuff like ```/etc``` works. Unfortunately it makes pretty much all Windows command line tools unusable from the shell:\r\n\r\n```\r\nbash-3.1$ tasklist /?\r\nFEHLER: Argument/Option ungültig - \"C:/Program Files (x86)/Gow/?\".\r\nGeben Sie \"TASKLIST /?\" ein, um die Syntax anzuzeigen.\r\nbash-3.1$ tasklist '/?'\r\nFEHLER: Argument/Option ungültig - \"C:/Program Files (x86)/Gow/?\".\r\nGeben Sie \"TASKLIST /?\" ein, um die Syntax anzuzeigen.\r\nbash-3.1$ tasklist '\\/?'\r\nFEHLER: Argument/Option ungültig - \"\\/?\".\r\nGeben Sie \"TASKLIST /?\" ein, um die Syntax anzuzeigen.\r\nbash-3.1$ tasklist \\/?\r\nFEHLER: Argument/Option ungültig - \"C:/Program Files (x86)/Gow/?\".\r\nGeben Sie \"TASKLIST /?\" ein, um die Syntax anzuzeigen.\r\n```\r\n\r\nAs you can see, quoting or backslashing does not solve the problem. I would like some kind of switch to turn this behavior off, in particular for interactive shell (not in scripts).\r\n"},"comment":{"url":"https://api.github.com/repos/bmatzelle/gow/issues/comments/165947882","html_url":"https://github.com/bmatzelle/gow/issues/196#issuecomment-165947882","issue_url":"https://api.github.com/repos/bmatzelle/gow/issues/196","id":165947882,"user":{"login":"stlee987","id":7566083,"avatar_url":"https://avatars.githubusercontent.com/u/7566083?v=3","gravatar_id":"","url":"https://api.github.com/users/stlee987","html_url":"https://github.com/stlee987","followers_url":"https://api.github.com/users/stlee987/followers","following_url":"https://api.github.com/users/stlee987/following{/other_user}","gists_url":"https://api.github.com/users/stlee987/gists{/gist_id}","starred_url":"https://api.github.com/users/stlee987/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stlee987/subscriptions","organizations_url":"https://api.github.com/users/stlee987/orgs","repos_url":"https://api.github.com/users/stlee987/repos","events_url":"https://api.github.com/users/stlee987/events{/privacy}","received_events_url":"https://api.github.com/users/stlee987/received_events","type":"User","site_admin":false},"created_at":"2015-12-19T04:48:46Z","updated_at":"2015-12-19T04:48:46Z","body":"I'm running into the same problem.  My scripts are getting broken because of this.  Does anyone know of a workaround?  There must be a setting you can enable to turn this off.\r\n\r\n```\r\n$ echo '/'\r\nC:/Program Files (x86)/Gow\r\n```\r\n\r\nFor your example above, since it's harmless to have two '/', you can do the following as a workaround.\r\n\r\n```\r\n$ tasklist //?\r\nTASKLIST [/S system [/U username [/P [password]]]]\r\n         [/M [module] | /SVC | /V] [/FI filter] [/FO format] [/NH]\r\n...\r\n```\r\n\r\n"}}