summaryrefslogtreecommitdiff
path: root/lib/rake.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake.rb')
-rwxr-xr-xlib/rake.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rake.rb b/lib/rake.rb
index 480068be7a..63412b1531 100755
--- a/lib/rake.rb
+++ b/lib/rake.rb
@@ -1477,9 +1477,9 @@ module Rake
# name, line number, and the matching line of text. If no block is given,
# a standard emac style file:linenumber:line message will be printed to
# standard out.
- def egrep(pattern)
+ def egrep(pattern, *opt)
each do |fn|
- open(fn) do |inf|
+ open(fn, "rb", *opt) do |inf|
count = 0
inf.each do |line|
count += 1