commit 89a927d3bb491aa5c3779d402afd3f076816407a
parent 4882084585bc41f59393978b3a14ae4993748ee4
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Sat, 8 Feb 2020 10:52:53 +0200
kiss: Fix search not allowing globs
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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