From 0e367daf53a69a6d77f711b59efe944a37261bb8 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 20 Apr 2020 08:58:25 +0300 Subject: [PATCH] kiss: Case remove UB --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 425d720..43b7f75 100755 --- a/kiss +++ b/kiss @@ -1236,7 +1236,7 @@ args() { # This handles the globbing characters '*', '!', '[' and ']' as per: # https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html [ "${action##[as]*}" ] && - case $@ in *\**|*\!*|*\[*|*\]*) + case $* in *\**|*\!*|*\[*|*\]*) die "Arguments contain invalid characters: '!*[]'" esac