m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 15:53:39 -05:00

[fzf-tmux] Escape backslash in command-line arguments

This commit is contained in:
Junegunn Choi
2016-05-15 17:07:34 +09:00
parent 9078688baf
commit faccc0a410

View File

@@ -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\""