This commit is contained in:
Jamie Cameron
2017-06-11 13:28:14 -07:00
parent 041ed3ace4
commit 6ca8341261
2 changed files with 4 additions and 1 deletions

View File

@@ -96,7 +96,7 @@ elsif ($in{'view'}) {
}
$cat = "(".join(" ; ", @cats).")";
$got = &proc::safe_process_exec(
"$cat | grep -i $filter | $tailcmd",
"$cat | grep -i -a $filter | $tailcmd",
0, 0, STDOUT, undef, 1, 0, undef, 1);
} else {
# Not filtering .. so cat the most recent non-empty file

View File

@@ -354,6 +354,9 @@ elsif ($l =~ /\.Z$/i) {
elsif ($l =~ /\.bz2$/i) {
return &has_command("bunzip2") ? "bunzip2 -c $q" : undef;
}
elsif ($l =~ /\.xz$/i) {
return &has_command("xz") ? "xz -d -c $q" : undef;
}
else {
return "cat $q";
}