From 23a391e71599fadb780b53f716c86d5aec07e1d8 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Fri, 5 Jul 2024 01:46:36 +0900 Subject: [zsh] Fix backslash escaping (#3909) Fix #3859 To test: FZF_CTRL_T_COMMAND="echo -E 'foo\bar\baz'; echo -E 'hello\world'" _fzf_compgen_path() { eval $FZF_CTRL_T_COMMAND } source shell/key-bindings.zsh source shell/completion.zsh --- shell/key-bindings.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shell/key-bindings.zsh') diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh index 1490595d..eea51899 100644 --- a/shell/key-bindings.zsh +++ b/shell/key-bindings.zsh @@ -52,8 +52,8 @@ __fzf_select() { local item FZF_DEFAULT_COMMAND=${FZF_CTRL_T_COMMAND:-} \ FZF_DEFAULT_OPTS=$(__fzf_defaults "--reverse --walker=file,dir,follow,hidden --scheme=path" "${FZF_CTRL_T_OPTS-} -m") \ - FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) "$@" < /dev/tty | while read item; do - echo -n "${(q)item} " + FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd) "$@" < /dev/tty | while read -r item; do + echo -n -E "${(q)item} " done local ret=$? echo -- cgit v1.2.3