From 205831ab61e33d067ebc5814ffc0f34a6b270574 Mon Sep 17 00:00:00 2001 From: GaugeK Date: Thu, 20 Aug 2020 06:08:11 +1000 Subject: [PATCH] fix infinite loop in bash obsfucation is fun --- fet.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fet.sh b/fet.sh index c1cb542..cf81926 100755 --- a/fet.sh +++ b/fet.sh @@ -8,9 +8,9 @@ exec 2>/dev/null set -- _() { # [ a = b ] with globbing - ! case $1 in # default return is 0 so double negative saves a line - $2) return 1 - esac + case $1 in + $2) return + esac;! : } ## Terminal