From 7df30fd9df82d5e38e72a7f59ccaed40e6d22138 Mon Sep 17 00:00:00 2001 From: Arthur Williams Date: Sat, 7 Nov 2020 04:19:24 -0600 Subject: [PATCH] Allow '[' and ']' for kiss owns Allow commands like `kiss own /usr/bin/\[` to succeed --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 0bba49e..ce514ca 100755 --- a/kiss +++ b/kiss @@ -1441,7 +1441,7 @@ args() { # # This handles the globbing characters '*', '!', '[' and ']' as per: # https://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html - [ "${action##[as]*}" ] && case "$*" in *\**|*\!*|*\[*|*\]*) + [ "${action##[aos]*}" ] && case "$*" in *\**|*\!*|*\[*|*\]*) die "Arguments contain invalid characters: '!*[]' ($*)" esac