aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xbin/brew2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/brew b/bin/brew
index 715daa61a..e9974b16a 100755
--- a/bin/brew
+++ b/bin/brew
@@ -133,7 +133,7 @@ begin
if ARGV.first =~ /^\/(.*)\/$/
puts_columns formulae.grep(Regexp.new($1))
else
- search_term = Regexp.escape(ARGV.first)
+ search_term = Regexp.escape(ARGV.first || "")
puts_columns formulae.grep(/.*#{search_term}.*/)
end