mirror of
https://codeberg.org/kiss-community/kiss
synced 2025-01-26 09:34:59 -07:00
Allow '[' and ']' for kiss owns
Allow commands like `kiss own /usr/bin/\[` to succeed
This commit is contained in:
parent
1ae8340e49
commit
7df30fd9df
2
kiss
2
kiss
@ -1441,7 +1441,7 @@ args() {
|
||||
#
|
||||
# This handles the globbing characters '*', '!', '[' and ']' as per:
|
||||
# https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
|
||||
[ "${action##[as]*}" ] && case "$*" in *\**|*\!*|*\[*|*\]*)
|
||||
[ "${action##[aos]*}" ] && case "$*" in *\**|*\!*|*\[*|*\]*)
|
||||
die "Arguments contain invalid characters: '!*[]' ($*)"
|
||||
esac
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user