aboutsummaryrefslogtreecommitdiff
path: root/kiss
diff options
context:
space:
mode:
authordylan.araps@gmail.com <dylan.araps@gmail.com>2020-03-11 16:27:00 +0000
committerdylan.araps@gmail.com <dylan.araps@gmail.com>2020-03-11 16:27:00 +0000
commit3664e0d91881fe98a86a53b623c14c4b0d28e45b (patch)
tree43f787d628b572d09ab421a4a5654a9892123e50 /kiss
parent53eb7b41bb312ca20e747a5bb77a0408a8a200c9 (diff)
downloadcpt-3664e0d91881fe98a86a53b623c14c4b0d28e45b.tar.gz
kiss: Remove shift math
FossilOrigin-Name: 65ced21e42ae58f544d5f7235ade824aeec40caff3902ee170fe436d79236b9f
Diffstat (limited to 'kiss')
-rwxr-xr-xkiss2
1 files changed, 1 insertions, 1 deletions
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
}