forked from kiss-community/kiss
kiss: Case remove UB
This commit is contained in:
parent
866860eac7
commit
0e367daf53
2
kiss
2
kiss
@ -1236,7 +1236,7 @@ args() {
|
|||||||
# This handles the globbing characters '*', '!', '[' and ']' as per:
|
# This handles the globbing characters '*', '!', '[' and ']' as per:
|
||||||
# https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
|
# https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
|
||||||
[ "${action##[as]*}" ] &&
|
[ "${action##[as]*}" ] &&
|
||||||
case $@ in *\**|*\!*|*\[*|*\]*)
|
case $* in *\**|*\!*|*\[*|*\]*)
|
||||||
die "Arguments contain invalid characters: '!*[]'"
|
die "Arguments contain invalid characters: '!*[]'"
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user