aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2013-11-21 14:50:35 -0600
committerJack Nagel2013-11-21 17:13:49 -0600
commitd2a38180e65d2475143cd214e8a3f682f5aa7818 (patch)
tree16d9c8be521149c87017718c125210cecc5633d4
parent3c4ca0f416c00c7ccb5709d138cda3b0ecc5b6ac (diff)
downloadhomebrew-d2a38180e65d2475143cd214e8a3f682f5aa7818.tar.bz2
Use grep instead of select + match
-rwxr-xr-xLibrary/ENV/4.3/cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc
index d13e387c6..9172d3cea 100755
--- a/Library/ENV/4.3/cc
+++ b/Library/ENV/4.3/cc
@@ -204,7 +204,7 @@ class Cmd
end
def cpath
cpath = ENV['CMAKE_PREFIX_PATH'].split(':').map{|d| "#{d}/include" } + ENV['CMAKE_INCLUDE_PATH'].split(':')
- opt = cpath.select{|prefix| prefix =~ %r{^#$brewfix/opt} }
+ opt = cpath.grep(%r{^#$brewfix/opt})
sys = cpath - opt
[sys, opt]
end