From 8c613e618b6a2205981baa6017075a65ecc6c04e Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 21 Nov 2013 14:50:35 -0600 Subject: [PATCH] Use grep instead of select + match --- Library/ENV/4.3/cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/ENV/4.3/cc b/Library/ENV/4.3/cc index d13e387c66..9172d3cea3 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