From 18461ddedb26aa76f139e6bbb1a20b3764c3637b Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 11 Mar 2020 18:27:00 +0200 Subject: [PATCH] kiss: Remove shift math --- kiss | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kiss b/kiss index 85340f7..a12e648 100755 --- a/kiss +++ b/kiss @@ -75,7 +75,7 @@ pop() { # Remove an item from a "string list". This allows us # to remove a 'sed' call and reuse this code throughout. del=$1 - shift "$(($# ? 1 : 0))" + shift for i; do [ "$i" = "$del" ] || printf %s " $i "; done }