aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2013-11-21 14:50:35 -0600
committerJack Nagel2013-11-21 17:13:49 -0600
commit8c613e618b6a2205981baa6017075a65ecc6c04e (patch)
treee1347d72ff04b4f7419b7289c225b40556abe699 /Library
parentf89c8bbaf9e65e81a5575669db3bafddeccf1c8f (diff)
downloadbrew-8c613e618b6a2205981baa6017075a65ecc6c04e.tar.bz2
Use grep instead of select + match
Diffstat (limited to 'Library')
-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