[fzf-tmux] Escape $ in arguments

e.g. fzf-tmux -q '$PATH'

Related: #343
This commit is contained in:
Junegunn Choi 2016-06-08 01:27:22 +09:00
parent 56fb2f00b3
commit 6a431cbf49
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -137,6 +137,7 @@ for arg in "${args[@]}"; do
arg="${arg//\\/\\\\}"
arg="${arg//\"/\\\"}"
arg="${arg//\`/\\\`}"
arg="${arg//$/\\$}"
opts="$opts \"$arg\""
done