From 0a22142d88ae6cf65d3c9801978241554c3ee968 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Mon, 7 Sep 2015 18:40:39 +0900 Subject: [PATCH] [fzf-tmux] Fix #343 - Escape backticks in --query --- bin/fzf-tmux | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/fzf-tmux b/bin/fzf-tmux index abed1ee..5f690e5 100755 --- a/bin/fzf-tmux +++ b/bin/fzf-tmux @@ -117,7 +117,9 @@ mkfifo $fifo3 # Build arguments to fzf opts="" for arg in "${args[@]}"; do - opts="$opts \"${arg//\"/\\\"}\"" + arg="${arg//\"/\\\"}" + arg="${arg//\`/\\\`}" + opts="$opts \"$arg\"" done if [ -n "$term" -o -t 0 ]; then