{"action":"created","issue":{"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/223","repository_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager","labels_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/223/comments","events_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/223/events","html_url":"https://github.com/projectatomic/vagrant-service-manager/issues/223","id":155601735,"number":223,"title":"On Windows the env command uses 'export' and 'eval' independently of the shell type","user":{"login":"hferentschik","id":296354,"avatar_url":"https://avatars.githubusercontent.com/u/296354?v=3","gravatar_id":"","url":"https://api.github.com/users/hferentschik","html_url":"https://github.com/hferentschik","followers_url":"https://api.github.com/users/hferentschik/followers","following_url":"https://api.github.com/users/hferentschik/following{/other_user}","gists_url":"https://api.github.com/users/hferentschik/gists{/gist_id}","starred_url":"https://api.github.com/users/hferentschik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hferentschik/subscriptions","organizations_url":"https://api.github.com/users/hferentschik/orgs","repos_url":"https://api.github.com/users/hferentschik/repos","events_url":"https://api.github.com/users/hferentschik/events{/privacy}","received_events_url":"https://api.github.com/users/hferentschik/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/labels/bug","name":"bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/milestones/4","html_url":"https://github.com/projectatomic/vagrant-service-manager/milestones/v1.2.0","labels_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/milestones/4/labels","id":1768670,"number":4,"title":"v1.2.0","description":"","creator":{"login":"navidshaikh","id":2510184,"avatar_url":"https://avatars.githubusercontent.com/u/2510184?v=3","gravatar_id":"","url":"https://api.github.com/users/navidshaikh","html_url":"https://github.com/navidshaikh","followers_url":"https://api.github.com/users/navidshaikh/followers","following_url":"https://api.github.com/users/navidshaikh/following{/other_user}","gists_url":"https://api.github.com/users/navidshaikh/gists{/gist_id}","starred_url":"https://api.github.com/users/navidshaikh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/navidshaikh/subscriptions","organizations_url":"https://api.github.com/users/navidshaikh/orgs","repos_url":"https://api.github.com/users/navidshaikh/repos","events_url":"https://api.github.com/users/navidshaikh/events{/privacy}","received_events_url":"https://api.github.com/users/navidshaikh/received_events","type":"User","site_admin":false},"open_issues":10,"closed_issues":1,"state":"open","created_at":"2016-05-16T13:26:16Z","updated_at":"2016-06-15T11:30:12Z","due_on":null,"closed_at":null},"comments":8,"created_at":"2016-05-18T21:06:55Z","updated_at":"2016-06-16T19:49:11Z","closed_at":null,"body":"Using vagrant-service-manager 1.0.2 on Windows 10, I get the following for the env command:\r\n\r\n    # Set the following environment variables to enable access to the\r\n    # docker daemon running inside of the vagrant virtual machine: \r\n    export DOCKER_HOST=tcp://10.1.2.2:2376 \r\n    export DOCKER_CERT_PATH='C:\\Users\\hardy\\work\\openshift-vagrant\\cdk-v2\\.vagrant\\machines\\cdk\\virtualbox\\docker\\'\r\n    export DOCKER_TLS_VERIFY=1\r\n    export DOCKER_API_VERSION=1.20\r\n\r\n    # run following command to configure your shell:\r\n    # eval \"$(VAGRANT_NO_COLOR=1 vagrant service-manager env docker | tr -d '\\r')\"\r\n\r\nThis is regardless of the used shell type. Works for cygwin, but not for PowerShell or cmd. The I18N file in the code seems to define the various cases, but they are not properly retrieved. "},"comment":{"url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/comments/226593689","html_url":"https://github.com/projectatomic/vagrant-service-manager/issues/223#issuecomment-226593689","issue_url":"https://api.github.com/repos/projectatomic/vagrant-service-manager/issues/223","id":226593689,"user":{"login":"hferentschik","id":296354,"avatar_url":"https://avatars.githubusercontent.com/u/296354?v=3","gravatar_id":"","url":"https://api.github.com/users/hferentschik","html_url":"https://github.com/hferentschik","followers_url":"https://api.github.com/users/hferentschik/followers","following_url":"https://api.github.com/users/hferentschik/following{/other_user}","gists_url":"https://api.github.com/users/hferentschik/gists{/gist_id}","starred_url":"https://api.github.com/users/hferentschik/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hferentschik/subscriptions","organizations_url":"https://api.github.com/users/hferentschik/orgs","repos_url":"https://api.github.com/users/hferentschik/repos","events_url":"https://api.github.com/users/hferentschik/events{/privacy}","received_events_url":"https://api.github.com/users/hferentschik/received_events","type":"User","site_admin":false},"created_at":"2016-06-16T19:49:11Z","updated_at":"2016-06-16T19:49:11Z","body":"BTW, @optak you are right that setting _VAGRANT_DETECTED_OS_ to something (non 'cygwin') makes the setx output appear. So the question is why I need to set it to something at all. If the variable is not set at all, I get the export form of the commands. Should the export form not only be used if we are on Windows (which we can detect) and the vagrant detected os env variable is set to 'cygin'. In the other cases it should be the Windows form.\r\n\r\nRegarding bash/cmd.exe, I think it would be better it would work with Powershell. If we cannot detect cmd vs powershell, then we can work with an environment variable there as well. Bottom line is that I want the command to provide the right syntax to configure my PowerShell terminal with the right settings. If I need to set an env variable first, that's fine. @optak Do you see where I am coming from?"}}
{"actor":{"display_login":"hferentschik"}}