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

Re: zsh (live version): setting globassign crashes completion



On Tue, Jun 2, 2015 at 4:00 PM, Peter Stephenson
<p.stephenson@xxxxxxxxxxx> wrote:
> On Tue, 2 Jun 2015 15:45:09 +0200
> Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
>> My money is on
>> "33816, 33819: GLOB_ASSIGN changes integer and floating type variables
>> to string scalars"
>> I checked that my patch still passes the test added by those patches,
>> and it does.
>
> (Moved to zsh-workers.)
>
> Ick.
>
> We'd better do this, too.
>
> pws
>
> diff --git a/Test/E01options.ztst b/Test/E01options.ztst
> index 5c453c8..195ce56 100644
> --- a/Test/E01options.ztst
> +++ b/Test/E01options.ztst
> @@ -483,6 +483,14 @@
>  >tmpcd tmpfile1 tmpfile2
>  >tmp*
>
> +  (setopt globassign
> +  typeset -A foo
> +  touch gatest1 gatest2
> +  foo=(gatest*)
> +  print ${(t)foo})
> +0:GLOB_ASSIGN doesn't monkey with type if not scalar assignment.
> +>association-local
> +
>    mkdir onlysomefiles
>    touch onlysomefiles/.thisfile onlysomefiles/thatfile
>    setopt globdots

Hm, there's one GLOB_ASSIGN test in A06 and one in E01, should we move
them together? Also, my patch had some unrelated gunk in the context,
sorry about that.

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author