Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [BUG] Weird _expand & _complete behavior for $parameters in "double quotes"
- X-seq: zsh-workers 48916
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Cc: Lawrence Velázquez <larryv@xxxxxxx>, Marlon Richert <marlon.richert@xxxxxxxxx>
- Subject: Re: [BUG] Weird _expand & _complete behavior for $parameters in "double quotes"
- Date: Mon, 24 May 2021 20:19:58 +0000
- Archived-at: <https://zsh.org/workers/48916>
- In-reply-to: <CAH+w=7aYtQGMF-Vu5E6V57P-NkWgW7KkTzh30+g3ZuKzOCB4ow@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <CAHLkEDsHb-5RqCZbSwyE4xE+7W04Ojq-9xikXo67ozRh_KdWyQ@mail.gmail.com> <CAH+w=7ZvLbNQ+OoijxWVLjMAf84ZXWhgxKY8k35BRw4iz=i0bg@mail.gmail.com> <CAHLkEDs=K73cB=YRoHW_0MY+Kv-hqMWAoB=za2Hxu+d36J_2kQ@mail.gmail.com> <206f86de-297c-4ed4-a4b5-6041a8a7dda7@www.fastmail.com> <CAH+w=7aYtQGMF-Vu5E6V57P-NkWgW7KkTzh30+g3ZuKzOCB4ow@mail.gmail.com>
Bart Schaefer wrote on Mon, May 24, 2021 at 13:13:04 -0700:
> On Sun, May 23, 2021 at 2:04 PM Lawrence Velázquez <larryv@xxxxxxx> wrote:
> >
> > On Tue, May 11, 2021, at 1:32 PM, Marlon Richert wrote:
> > > * 0001-_expand-_complete-parameters-in-double-quotes.txt
> >
> > Should this test case be committed?
>
> I would say "no". At best it would be an "xfail" test, but we don't
> yet know if the eventual non-error output will match what Marlon
> expected when he made up the test.
We could still do the following, though? Based on Marlon's patch, but
with expectations adjusted.
diff --git a/Test/Y01completion.ztst b/Test/Y01completion.ztst
index 882a0adc4..f507996f1 100644
--- a/Test/Y01completion.ztst
+++ b/Test/Y01completion.ztst
@@ -322,6 +322,14 @@ F:regression test workers/31611
>NO:{y}
>NO:{z}
+ comptesteval "typeset -a bar=({$'\\0'..$'\\C-?'})"
+ comptesteval 'typeset -A bat=( "$bar[@]" )'
+ comptesteval 'typeset bay="$bar"'
+ comptesteval 'unsetopt listambiguous'
+ comptest $': "$ba"\C-B\t\t' | fgrep line: | fgrep '\"\"\"'
+-Df: complete parameter in double quotes
+# When this test starts to pass, add proper expectations.
+
%clean
Messages sorted by:
Reverse Date,
Date,
Thread,
Author