aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorMax Howell2012-09-12 22:09:46 -0400
committerMax Howell2012-09-12 22:09:46 -0400
commit6c5f175a42504e75f5da05680e8a5ce46cf9d707 (patch)
treeb03ed7b20d30604bd746496342e8b313bc6f27da /Library/Homebrew/cmd
parent8268aedc5ab7eb48c90cc66df8c6e48b9b5567ec (diff)
downloadhomebrew-6c5f175a42504e75f5da05680e8a5ce46cf9d707.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/Homebrew/cmd')
-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