zshrc: Make minimal-shellrc printf-free
[grml-etc-core.git] / etc / minimal-shellrc
index dec53b5..1a5a9c2 100644 (file)
@@ -43,7 +43,7 @@ if [[ -x $(which infocmp) ]] && [[ -x $(which sed) ]] ; then
         while read -r line ; do
             key="${line%=*}"
             [[ "${key}" != k* ]] && continue
-            seq="$(printf '%s' "${line#*=}" | sed -e 's,\\\([1-7][0-7]*\),\\0\1,g')"
+            seq="$(print -r -- "${line#*=}" | sed -e 's,\\\([1-7][0-7]*\),\\0\1,g')"
             seq="$(print "${seq}")"
             case "$key" in
                 key_left)      bind "${seq}"='backward-char'        ;;