From df6c55e4397965f1b11b2c05edbf8c03680fb012 Mon Sep 17 00:00:00 2001 From: Cem Keylan Date: Sun, 19 Apr 2020 20:53:25 +0300 Subject: [PATCH] Reset arguments on 'kiss help' function This removes the previous arguments when calling kiss help so that they are not listed as extensions. This is not a big issue, but someone can type kiss help please and 'please' would be shown as an available extension. Signed-off-by: Dylan Araps --- kiss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kiss b/kiss index 4be0c49..98ed48d 100755 --- a/kiss +++ b/kiss @@ -1347,6 +1347,8 @@ args() { log "Installed extensions (kiss-* in \$PATH)" + set -- + for path in $(KISS_PATH=$PATH pkg_find kiss-\* all); do set -- "${path#*/kiss-}" "$@" max=$((${#1} > max ? ${#1} : max))