aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkiss3
1 files changed, 2 insertions, 1 deletions
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