about summary refs log tree commit diff
path: root/Completion
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2016-06-03 15:57:41 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2016-06-03 15:57:41 -0700
commit9c7f298447bc225666f9baa957ce933f5493d437 (patch)
tree467f335745d999d8449cb0dd56540c33e9f8d9ba /Completion
parentc5c471bc746aca1cafa97ee50527cf411d438464 (diff)
downloadzsh-9c7f298447bc225666f9baa957ce933f5493d437.tar.gz
zsh-9c7f298447bc225666f9baa957ce933f5493d437.tar.xz
zsh-9c7f298447bc225666f9baa957ce933f5493d437.zip
users/21609: do not treat tilde-expansions as quoted when inside command substitutions
Diffstat (limited to 'Completion')
-rw-r--r--Completion/Unix/Type/_path_files2
1 files changed, 1 insertions, 1 deletions
diff --git a/Completion/Unix/Type/_path_files b/Completion/Unix/Type/_path_files
index c64ebf58c..14c4cc753 100644
--- a/Completion/Unix/Type/_path_files
+++ b/Completion/Unix/Type/_path_files
@@ -273,7 +273,7 @@ if [[ "$pre" = [^][*?#^\|\<\>\\]#(\`[^\`]#\`|\$)*/* && "$compstate[quote]" != \'
   orig="${orig[1,(in:i:)/][1,-2]}"
   donepath=
   prepaths=( '' )
-elif [[ "$pre[1]" = \~ && -z "$compstate[quote]" ]]; then
+elif [[ "$pre[1]" = \~ && "$compstate[quote]" = (|\`) ]]; then
 
   # It begins with `~', so remember anything before the first slash to be able
   # to report it to the completion code. Also get an expanded version of it