{"action":"opened","issue":{"url":"https://api.github.com/repos/docker/machine/issues/2230","labels_url":"https://api.github.com/repos/docker/machine/issues/2230/labels{/name}","comments_url":"https://api.github.com/repos/docker/machine/issues/2230/comments","events_url":"https://api.github.com/repos/docker/machine/issues/2230/events","html_url":"https://github.com/docker/machine/issues/2230","id":115962315,"number":2230,"title":"Windows + Bash: Issue with `docker-machine env --shell bash xxx`","user":{"login":"dsifford","id":5240018,"avatar_url":"https://avatars.githubusercontent.com/u/5240018?v=3","gravatar_id":"","url":"https://api.github.com/users/dsifford","html_url":"https://github.com/dsifford","followers_url":"https://api.github.com/users/dsifford/followers","following_url":"https://api.github.com/users/dsifford/following{/other_user}","gists_url":"https://api.github.com/users/dsifford/gists{/gist_id}","starred_url":"https://api.github.com/users/dsifford/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dsifford/subscriptions","organizations_url":"https://api.github.com/users/dsifford/orgs","repos_url":"https://api.github.com/users/dsifford/repos","events_url":"https://api.github.com/users/dsifford/events{/privacy}","received_events_url":"https://api.github.com/users/dsifford/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-11-09T20:47:19Z","updated_at":"2015-11-09T20:47:19Z","closed_at":null,"body":"I apologize if this issue has already been created (I looked briefly for it).\r\n\r\n### My setup\r\n- Windows 10 Pro, Beta (fast build)\r\n- Docker Toolbox (latest)\r\n- Shell: bash\r\n\r\n### Here's what's happening:\r\n\r\n```bash\r\ndocker-machine env --shell bash dev\r\nexport DOCKER_TLS_VERIFY=\"1\"\r\nexport DOCKER_HOST=\"tcp://192.168.99.100:2376\"\r\nexport DOCKER_CERT_PATH=\"C:\\Users\\dsifford\\.docker\\machine\\machines\\dev\"\r\nexport DOCKER_MACHINE_NAME=\"dev\"\r\n# Run this command to configure your shell:\r\n# eval \"$(C:\\Program Files\\Docker Toolbox\\docker-machine.exe env --shell bash dev)\"\r\n```\r\n\r\n### The issue\r\nRunning `eval` on a filename containing spaces will not work unless properly formatted.\r\n\r\n### The solution\r\nFormat the above bash `eval` script like this...\r\n\r\n```bash\r\neval \"$(C:/Program\\ Files/Docker\\ Toolbox/docker-machine.exe env --shell bash dev)\"\r\n```\r\n1. Convert the backslashes into forward slashes\r\n2. Use backslashes before every space in the file path\r\n\r\nCheers!"}}