From 4f4a57bbe614b5f589d34aa864d719e107466141 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 25 May 2020 20:21:13 +0000 Subject: kiss: enable the usage of glob characters with kiss-bin FossilOrigin-Name: 7d9a317d070b75d1736fca0ee433bd0dbfbcd320c0cd379df68ad615a27c691a --- kiss | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'kiss') diff --git a/kiss b/kiss index a013660..42190fb 100755 --- a/kiss +++ b/kiss @@ -1369,10 +1369,11 @@ args() { # # This handles the globbing characters '*', '!', '[' and ']' as per: # https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html - [ "${action##[as]*}" ] && + case "$action" in a|alternatives|s|search|bin) ;; *) case $* in *\**|*\!*|*\[*|*\]*) die "Arguments contain invalid characters: '!*[]'" esac + esac # Parse some arguments earlier to remove the need to duplicate code. case $action in -- cgit v1.2.3