aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/brew7
1 files changed, 6 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index bd848a9f1..d5d9791eb 100755
--- a/bin/brew
+++ b/bin/brew
@@ -81,7 +81,12 @@ begin
case arg = ARGV.shift
when '--prefix'
- puts HOMEBREW_PREFIX
+ if ARGV.named.empty?
+ puts HOMEBREW_PREFIX
+ else
+ puts *ARGV.formulae.collect {|f| f.prefix}
+ end
+
when '--repository'
puts HOMEBREW_REPOSITORY
when '--cellar'