From 466722d10770e62e8eff7db7ba1d4bc321eb92dd Mon Sep 17 00:00:00 2001 From: Connor Olding Date: Sat, 13 Jul 2024 02:55:28 -0700 Subject: [PATCH] fix inverted logic in `witch` --- sh/witch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sh/witch b/sh/witch index 470eefe..366d82e 100755 --- a/sh/witch +++ b/sh/witch @@ -26,7 +26,7 @@ for flag; do esac done -[ "$#" != 0 ] && res=1 || res=0 +[ "$#" = 0 ] && res=1 || res=0 IFS=: for prog; do