From 89a927d3bb491aa5c3779d402afd3f076816407a Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Sat, 8 Feb 2020 10:52:53 +0200 Subject: [PATCH] kiss: Fix search not allowing globs --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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