From e87447803ef980b255aaef826185c890a0e19aed Mon Sep 17 00:00:00 2001 From: "dylan.araps@gmail.com" Date: Sat, 8 Feb 2020 08:52:52 +0000 Subject: kiss: Fix search not allowing globs FossilOrigin-Name: a244e3b79db648a492d60d78cf26a2c7576acf1adf25e240f26cc34c19a4d0fb --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'kiss') 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 -- cgit v1.2.3