diff options
author | Wieland Hoffmann <themineo@gmail.com> | 2017-06-16 22:28:54 -0700 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2017-06-16 22:28:54 -0700 |
commit | cf72c2d288b3d8763055d6553c91277048be0fcc (patch) | |
tree | 0ec4e59ebd63cef7ee0af747f7c6331e05c68597 | |
parent | 6ecc34a55e550a893d3962aff1249fa1cdfc3d51 (diff) | |
download | zsh-cf72c2d288b3d8763055d6553c91277048be0fcc.tar.gz zsh-cf72c2d288b3d8763055d6553c91277048be0fcc.tar.xz zsh-cf72c2d288b3d8763055d6553c91277048be0fcc.zip |
41265: quote the inserted file names as necessary
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | Functions/Zle/insert-files | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog index f5ed5f009..cb71790b0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2017-06-16 Barton E. Schaefer <schaefer@zsh.org> + + * Wieland Hoffmann: 41265: Functions/Zle/insert-files: quote + the inserted file names as necessary + 2017-06-13 Eric Cook <llua@gmx.com> * unposted: Functions/Zle/url-quote-magic: fix typo diff --git a/Functions/Zle/insert-files b/Functions/Zle/insert-files index 10f90ed4a..2d13d82d2 100644 --- a/Functions/Zle/insert-files +++ b/Functions/Zle/insert-files @@ -12,7 +12,7 @@ setopt nobadpattern local key str files -files=( *(N) ) +files=( *(N:q) ) if (( $#files )); then zle -R "files: ${str}_" "$files[@]" else @@ -26,7 +26,7 @@ while [[ '#key' -ne '#\\r' && '#key' -ne '#\\n' && else str="$str$key" fi - eval "files=( \${~str}*(N) )" + eval "files=( \${~str}*(N:q) )" if (( $#files )); then zle -R "files: ${str}_" "$files[@]" else |