aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJames Pannacciulli <jpnc@jpnc.info>2017-06-13 02:40:43 -0700
committerJames Pannacciulli <jpnc@jpnc.info>2017-06-13 02:40:43 -0700
commit112f3b20df4802e160ab0227074483c991f6b922 (patch)
treec39c6394116c4005c9de47e5cca09a24953fa6bc
parent1b09c0814cd1e5d5a57be0c45c879fe0b146d220 (diff)
downloadariketa-112f3b20df4802e160ab0227074483c991f6b922.tar.gz
ariketa-112f3b20df4802e160ab0227074483c991f6b922.tar.bz2
remove superfluous printf -v
-rw-r--r--lib/bindings.sh2
-rw-r--r--lib/functions.sh3
2 files changed, 2 insertions, 3 deletions
diff --git a/lib/bindings.sh b/lib/bindings.sh
index 017eb10..c6b44e8 100644
--- a/lib/bindings.sh
+++ b/lib/bindings.sh
@@ -1,6 +1,6 @@
#!/bin/bash
-# source this file to load key bindings for bpresent
+# source this file to load key bindings for ariketa
# alt-w:
# clear screen and go back to previous example
diff --git a/lib/functions.sh b/lib/functions.sh
index f8e679f..f9aab58 100644
--- a/lib/functions.sh
+++ b/lib/functions.sh
@@ -25,8 +25,7 @@ _example.unpack() {
}
_tag.unpack() {
- local _tag
- printf -v _tag "%s" "${1%%:$'\n'*}"
+ local _tag="${1%%:$'\n'*}"
(( ${#_tag} < ${#1} )) || return 1
printf "%s" "$_tag"
}