From 26599066ceccfbe3bc3aa97856d56337521d0c98 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Mon, 20 Apr 2020 08:59:13 +0300 Subject: [PATCH] kiss: Smaller ternary --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 43b7f75..f12e2e9 100755 --- a/kiss +++ b/kiss @@ -1227,7 +1227,7 @@ args() { # 'dash' exits on error here if 'shift' is used and there are zero # arguments despite trapping the error ('|| :'). - shift "$(($# > 0 ? 1 : 0))" + shift "$(($# ? 1 : 0))" # Unless this is a search, sanitize the user's input. The call to # 'pkg_find()' supports basic globbing, ensure input doesn't expand