From d3661c13d672d9faad10a367de712e14992ffaaa Mon Sep 17 00:00:00 2001 From: Alexey Samoshkin Date: Wed, 6 Dec 2017 21:25:47 +0200 Subject: [PATCH] Fix yank.sh. Use printf %s placeholder to avoid copied text being interpreted as printf arguments --- tmux/yank.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux/yank.sh b/tmux/yank.sh index 29973e6..653e19f 100755 --- a/tmux/yank.sh +++ b/tmux/yank.sh @@ -28,7 +28,7 @@ fi # if copy backend is resolved, copy and exit if [ -n "$copy_backend" ]; then - printf "$buf" | eval "$copy_backend" + printf "%s" "$buf" | eval "$copy_backend" exit; fi