commit 18461ddedb26aa76f139e6bbb1a20b3764c3637b
parent 34e2a79350b91a69a9f45a27e06da36c88658e46
Author: Dylan Araps <dylan.araps@gmail.com>
Date: Wed, 11 Mar 2020 18:27:00 +0200
kiss: Remove shift math
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git 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
}