diff options
author | merakor <cem@ckyln.com> | 2020-04-20 18:09:22 +0000 |
---|---|---|
committer | merakor <cem@ckyln.com> | 2020-04-20 18:09:22 +0000 |
commit | 395d0f1a6019c176de72ce3aa30f57eb810b0d9b (patch) | |
tree | 318fc0a566943c692d24b2a61f31530b6e2a488e /kiss | |
parent | cd5705905d1e93e0e8397b3899d4336b51adf2f2 (diff) | |
download | cpt-395d0f1a6019c176de72ce3aa30f57eb810b0d9b.tar.gz |
kiss: Case remove UB
FossilOrigin-Name: fe01e31c40a739022081182074440a69f176c1383c657c4dc7bb4ae6e616388d
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |