cpt

[ARCHIVED] Carbs Packaging Tools
git clone git://git.ckyln.com/~cem/cpt.git
Log | Files | Refs | README | LICENSE

commit e1e3b4d2215d3c3a280c749b47915ced75082b7c
parent 2dea28515c0d149d225ad6722de4e9dd212a9019
Author: Dylan Araps <dylan.araps@gmail.com>
Date:   Mon, 20 Apr 2020 08:58:25 +0300

kiss: Case remove UB

Diffstat:
Mkiss | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kiss b/kiss @@ -1233,7 +1233,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