Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix gzcat/zcat test

  • Loading branch information...
commit 77c871862c028839123923be2498083d8dcf38a2 1 parent 0ff2194
Sven Mueller incase authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/clarity/commands/grep_command_builder.rb
2  lib/clarity/commands/grep_command_builder.rb
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.