Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [BUG] Weird _expand & _complete behavior for $parameters in "double quotes"



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