diff options
author | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-08 08:52:52 +0000 |
---|---|---|
committer | dylan.araps@gmail.com <dylan.araps@gmail.com> | 2020-02-08 08:52:52 +0000 |
commit | e87447803ef980b255aaef826185c890a0e19aed (patch) | |
tree | 913d9eb9be5ecc0d2adab47a4c6313341f6312d9 /kiss | |
parent | bc1c678cb394a4db56bd331c261458a4cdc3fa21 (diff) | |
download | cpt-e87447803ef980b255aaef826185c890a0e19aed.tar.gz |
kiss: Fix search not allowing globs
FossilOrigin-Name: a244e3b79db648a492d60d78cf26a2c7576acf1adf25e240f26cc34c19a4d0fb
Diffstat (limited to 'kiss')
-rwxr-xr-x | kiss | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |