From c198ef1e2669c126601a2f41c5e7fac3af76d30f Mon Sep 17 00:00:00 2001 From: Dominic Ricottone Date: Fri, 16 Sep 2022 16:11:57 -0500 Subject: [PATCH] Fix quiet option on whiched and whichvi Previously the quiet option was suppressing the exit code on these programs. --- core/whiched | 3 +-- core/whichvi | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/core/whiched b/core/whiched index 7f1ee61..bd05095 100755 --- a/core/whiched +++ b/core/whiched @@ -49,8 +49,7 @@ done # if have not exited, no program was specified if [ "$quiet" -eq 0 ]; then (>&2 /usr/bin/printf "Usage: whiched [OPTIONS] PROGRAM\n") - exit 1 fi -exit 0 +exit 1 diff --git a/core/whichvi b/core/whichvi index 4a981f4..263799b 100755 --- a/core/whichvi +++ b/core/whichvi @@ -48,8 +48,7 @@ done if [ "$quiet" -eq 0 ]; then (>&2 /usr/bin/printf "Usage: whichvi [OPTIONS] PROGRAM\n") - exit 1 fi -exit 0 +exit 1 -- 2.45.2