Skip to content

Commit

Permalink
[fzf-tmux] Escape backslash in command-line arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
junegunn committed May 15, 2016
1 parent 9078688 commit faccc0a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bin/fzf-tmux
Original file line number Diff line number Diff line change
Expand Up @@ -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\""
Expand Down

0 comments on commit faccc0a

Please sign in to comment.