From d34c191fce67f9f22b974c6db9a6ef14f5479d79 Mon Sep 17 00:00:00 2001 From: Alejandro Colomar Date: Fri, 3 Nov 2023 18:48:51 +0100 Subject: Allow specifying several files Signed-off-by: Alejandro Colomar --- bin/grepc | 9 ++------- share/man/man1/grepc.1 | 2 +- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/bin/grepc b/bin/grepc index 23c9e3c..db053d9 100755 --- a/bin/grepc +++ b/bin/grepc @@ -156,12 +156,7 @@ grepc_parse_cmd() identifier=$1; shift; - if [ $# -gt 0 ]; then - file="$1"; - shift; - fi; - - test $# -gt 1 && grepc_err "Trailing unknown arguments."; + files=$*; if [ "$tflag" = 'no' ]; then t_e='yes'; @@ -237,7 +232,7 @@ main() { grepc_parse_cmd "$@"