:: commit 9cda90718a175c7add89c512e494072c6bf5fda2

Kamila Szewczyk <27734421+kspalaiologos@users.noreply.github.com> — 2024-01-13 16:51

parents: d9e5e15b7e

Fix for #127

diff --git a/bz3grep b/bz3grep
index b5d28f1..f49ed43 100644
--- a/bz3grep
+++ b/bz3grep
@@ -33,14 +33,7 @@ grep_args=""
 hyphen=0
 silent=0
 
-prog=${0##*/}
-
-# handle being called 'zegrep' or 'zfgrep'
-case $prog in
-    *egrep*) prog=zegrep; grep_args='-E';;
-    *fgrep*) prog=zfgrep; grep_args='-F';;
-    *)       prog=zstdgrep;;
-esac
+prog=bz3grep
 
 # skip all options and pass them on to grep taking care of options
 # with arguments, and if -e was supplied
@@ -133,4 +126,4 @@ else
     set +f
 fi
 
-exit "${EXIT_CODE}"
\ No newline at end of file
+exit "${EXIT_CODE}"
tab: 248 wrap: offon