aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-07-06 11:15:14 -0500
committerJack Nagel2014-07-06 11:15:14 -0500
commitc7ac8ce454d449dfe7486f9ff2eb5e369b86dd2f (patch)
treee82e139209ad3edbf679d787d29ec202097252e9 /Library
parent32d8574d8c20361480e6505d6ee913359c5ae320 (diff)
downloadbrew-c7ac8ce454d449dfe7486f9ff2eb5e369b86dd2f.tar.bz2
Expand ~ in PATH entries
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/utils.rb b/Library/Homebrew/utils.rb
index 9d39a72a5..9a73bf829 100644
--- a/Library/Homebrew/utils.rb
+++ b/Library/Homebrew/utils.rb
@@ -184,7 +184,7 @@ end
def which cmd, path=ENV['PATH']
path.split(File::PATH_SEPARATOR).find do |p|
- pcmd = File.join(p, cmd)
+ pcmd = File.expand_path(File.join(p, cmd))
return Pathname.new(pcmd) if File.executable?(pcmd) && !File.directory?(pcmd)
end
return nil