forked from kiss-community/kiss
kiss: fix globs
This commit is contained in:
parent
837148bc9b
commit
0c51261486
8
kiss
8
kiss
@ -1498,18 +1498,18 @@ args() {
|
||||
# not be used here as they would conflict with kiss extensions.
|
||||
case $action in
|
||||
a|alternatives)
|
||||
case $1 in */*|*\**|*\!*|*\[*|*\]*)
|
||||
die "Invalid argument: '/!*[]' ($1)"
|
||||
case $1 in *\**|*\!*|*\[*|*\]*|*' '*|*/*)
|
||||
die "Invalid argument: '!*[] /' ($1)"
|
||||
esac
|
||||
;;
|
||||
|
||||
b|build|c|checksum|d|download|i|install|l|list|r|remove)
|
||||
case ${action%%"${action#?}"}-$* in
|
||||
i-*[\*\!\[\]]*)
|
||||
i-*\!*|i-*\**|i-*\[*|i-*\]*|i-*' '*)
|
||||
die "Arguments contain invalid characters: '!*[] ' ($*)"
|
||||
;;
|
||||
|
||||
[!i]-*[\*\!\[\]/]*)
|
||||
[!i]-*\!*|[!i]-*\**|[!i]-*\[*|[!i]-*\]*|[!i]-*' '*|[!i]-*/*)
|
||||
die "Arguments contain invalid characters: '!*[] /' ($*)"
|
||||
;;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user