Hello, I am trying to use vagrant ssh from my host to run a script within my guest, but the shell doesn't share the same environment as the environment that I've set up in my provisioning step (namely adding certain directories to my $PATH variable). To illustrate this, if I run "echo $env:path" from within my guest, I can see all the directories that I've added, whereas if I access the shell from vagrant ssh, I only see the standard Windows paths. Is there a way to sync these two environments or to use winrm to run the script instead? Oddly enough I tried executing the script in my provisioning step instead (which I'd rather not do), and it worked just fine. Why does the provisioner have a different environment in this case? Any clarification would help. Thanks,
--Niko -- This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list. GitHub Issues: https://github.com/mitchellh/vagrant/issues IRC: #vagrant on Freenode --- You received this message because you are subscribed to the Google Groups "Vagrant" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/9b70f71e-c272-4005-ad22-e12d37e23546%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
