From d55dc8d01e61afdb6d3ec3eb32af3d6d5ed9879c Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 5 Mar 2014 07:53:19 -0800 Subject: [PATCH] audit: find env/export as a full word, not as a prefix Closes Homebrew/homebrew#27219. --- Library/Homebrew/cmd/audit.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/cmd/audit.rb b/Library/Homebrew/cmd/audit.rb index c3db8a08a6..bd86135ebc 100644 --- a/Library/Homebrew/cmd/audit.rb +++ b/Library/Homebrew/cmd/audit.rb @@ -424,7 +424,7 @@ class FormulaAuditor problem "Use \"\#{ENV.cxx}\" instead of hard-coding \"#{$3}\"" end - if line =~ /system\s+['"](env|export)/ + if line =~ /system\s+['"](env|export)\s+/ problem "Use ENV instead of invoking '#{$1}' to modify the environment" end