diff --git a/share/kak/kakrc b/share/kak/kakrc index be241e51..b9b46f87 100644 --- a/share/kak/kakrc +++ b/share/kak/kakrc @@ -7,7 +7,7 @@ def -params 1.. runtime %{ %sh{ def -params 1 -docstring "colorscheme : enable named colorscheme" \ -shell-completion %{ - prefix=$(echo ${1} | cut -c-${kak_pos_in_token}) + prefix=$(printf %s "$1" | cut -c-${kak_pos_in_token}) ( localconfdir=${XDG_CONFIG_HOME:-${HOME}/.config}/kak for col in ${kak_runtime}/colors/*.kak ${localconfdir}/colors/*.kak; do