Skip to content
Permalink
Browse files

Fix gzcat/zcat test

  • Loading branch information...
incase committed Dec 19, 2011
1 parent 0ff2194 commit 77c871862c028839123923be2498083d8dcf38a2
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/clarity/commands/grep_command_builder.rb
@@ -42,7 +42,7 @@ def exec_functions


def gzip_tools
cat_tool = (ENV["PATH"].split(":").find{|d| File.exists?(File.join(d, "gzcat"))} ? "zcat" : "gzcat")
cat_tool = (ENV["PATH"].split(":").find{|d| File.exists?(File.join(d, "zcat"))} ? "zcat" : "gzcat")
terms.empty? ? ["#{cat_tool} filename"] : ['zgrep options -e term filename'] + ['grep options -e term'] * (terms.size-1)
end

0 comments on commit 77c8718

Please sign in to comment.
You can’t perform that action at this time.