From 479a325d6593d35275f2ed3274d27f8b7e1f9d71 Mon Sep 17 00:00:00 2001 From: bapt Date: Wed, 25 Apr 2018 21:01:02 +0000 Subject: [PATCH] zgrep.sh: Add forgotten ';' and remove set -e which prevents looping over files not matching --- usr.bin/grep/zgrep.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/usr.bin/grep/zgrep.sh b/usr.bin/grep/zgrep.sh index 28e5174e01b5..a39084eb84d4 100755 --- a/usr.bin/grep/zgrep.sh +++ b/usr.bin/grep/zgrep.sh @@ -24,7 +24,7 @@ # # $FreeBSD$ -set -eu +set -u grep=grep zcat=zstdcat @@ -144,7 +144,7 @@ else if [ ${silent} -lt 1 -a $# -gt 1 ]; then grep_args="-H ${grep_args}" fi - for file do + for file; do ${cattool} ${catargs} -- "${file}" | ${grep} --label="${file}" ${grep_args} -- "${pattern}" - done fi