Permalink
Browse files

Pass the H option to grep to ALWAYS show the filename

  • Loading branch information...
1 parent 9aebd05 commit cbdae476d9f603ba6eefc8c93a67e97d6b20b48e @radar radar committed Apr 7, 2011
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/application_checker.rb
@@ -378,11 +378,11 @@ def find_with_grep(text, where, double_quote, perl_regex = false)
value = ""
# Specifically double quote for finding 'test_help'
command = if double_quote
- "grep -r #{"-P" if perl_regex} \"#{text}\" #{where} | grep -v \.svn"
+ "grep -rH #{"-P" if perl_regex} \"#{text}\" #{where} | grep -v \.svn"
else
- "grep -r #{"-P" if perl_regex} '#{text}' #{where} | grep -v \.svn"
+ "grep -rH #{"-P" if perl_regex} '#{text}' #{where} | grep -v \.svn"
end
-
+
Open3.popen3(command) do |stdin, stdout, stderr|
value = stdout.read
end

0 comments on commit cbdae47

Please sign in to comment.