aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-08 08:52:52 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-02-08 08:52:52 +0000
commite87447803ef980b255aaef826185c890a0e19aed (patch)
tree913d9eb9be5ecc0d2adab47a4c6313341f6312d9
parentbc1c678cb394a4db56bd331c261458a4cdc3fa21 (diff)
downloadcpt-e87447803ef980b255aaef826185c890a0e19aed.tar.gz
kiss: Fix search not allowing globs
FossilOrigin-Name: a244e3b79db648a492d60d78cf26a2c7576acf1adf25e240f26cc34c19a4d0fb
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
diff --git a/kiss b/kiss
index 894076b..4a76161 100755
--- a/kiss
+++ b/kiss
@@ -1189,7 +1189,7 @@ args() {
#
# This handles the globbing characters '*', '!', '[' and ']' as per:
# https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html
- [ "${action#[as]*}" ] &&
+ [ "${action##[as]*}" ] &&
case $@ in *'*'*|*'!'*|*'['*|*']'*)
die "Arguments contain invalid characters: '!*[]'"
esac