From 5bddd6c366bb19083052cf92f8b7d102daa0a007 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 15 Jan 2014 21:15:17 -0800 Subject: [PATCH] core: dont' load rc or profile when getting a cygpath with bash --- lib/vagrant/util/platform.rb | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/util/platform.rb b/lib/vagrant/util/platform.rb index f86bcfddf..3e454a0e9 100644 --- a/lib/vagrant/util/platform.rb +++ b/lib/vagrant/util/platform.rb @@ -43,7 +43,11 @@ module Vagrant rescue Errors::CommandUnavailableWindows # Sometimes cygpath isn't available (msys). Instead, do what we # can with bash tricks. - process = Subprocess.execute("bash", "-c", "cd #{path} && pwd") + process = Subprocess.execute( + "bash", + "--noprofile", + "--norc", + "-c", "cd #{path} && pwd") return process.stdout.chomp end end