From faccc0a41036a7f41b28899fad4684e1a464cc73 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 15 May 2016 17:07:34 +0900 Subject: [PATCH] [fzf-tmux] Escape backslash in command-line arguments --- bin/fzf-tmux | 1 + 1 file changed, 1 insertion(+) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index a164a62..4de93e2 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -134,6 +134,7 @@ mkfifo -m o+w $fifo3 # Build arguments to fzf opts="" for arg in "${args[@]}"; do + arg="${arg//\\/\\\\}" arg="${arg//\"/\\\"}" arg="${arg//\`/\\\`}" opts="$opts \"$arg\""