aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-05-25 20:21:13 +0000
committermerakor <cem@ckyln.com>2020-05-25 20:21:13 +0000
commit4f4a57bbe614b5f589d34aa864d719e107466141 (patch)
tree1a3633be43a43a01c5c13963d79df554f7022565
parent6295a9e619865ddd677c8677fce8cc2b405c9450 (diff)
downloadcpt-4f4a57bbe614b5f589d34aa864d719e107466141.tar.gz
kiss: enable the usage of glob characters with kiss-bin
FossilOrigin-Name: 7d9a317d070b75d1736fca0ee433bd0dbfbcd320c0cd379df68ad615a27c691a
-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