aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMax Howell2012-09-12 22:09:46 -0400
committerMax Howell2012-09-12 22:09:46 -0400
commitdd917bc105860146f50ab9103760bd1704995247 (patch)
treebcf476045c3b24b4fde5f754110ab5359b7e1acc /Library
parentea593cf61cf376ffb44f7c825c8734c79cff6850 (diff)
downloadbrew-dd917bc105860146f50ab9103760bd1704995247.tar.bz2
Use opt prefix for --prefix
Rationale: everyone thinks it points to the currently installed prefix, not the prefix of the formula that is newest and maybe not installed. The previous behavior was unintentional and evidence proves it is not intuitive either. I anticipate no regressions. And hope I am right!
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/cmd/--prefix.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/--prefix.rb b/Library/Homebrew/cmd/--prefix.rb
index 51d341d3a..bd55a512a 100644
--- a/Library/Homebrew/cmd/--prefix.rb
+++ b/Library/Homebrew/cmd/--prefix.rb
@@ -3,7 +3,7 @@ module Homebrew extend self
if ARGV.named.empty?
puts HOMEBREW_PREFIX
else
- puts ARGV.formulae.map{ |f| f.installed_prefix }
+ puts ARGV.formulae.map{ |f| "#{HOMEBREW_PREFIX}/opt/#{f}" }
end
end
end