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

Re: segfault



Oh, and

% zsh --version
zsh 5.3.1 (x86_64-unknown-linux-gnu)

2017-06-04 4:59 GMT+02:00 yac yac <yac@xxxxxxxxxxx>:

> Hi, I managed to segfault zsh:
>
> yac@remy % zsh a.sh
> b d
>
>
> zsh: segmentation fault (core dumped)  zsh a.sh
>
> using:
>
> #! /usr/bin/env zsh
>
> #declare -A foo=( a b c d )
> function foo {
>   local -A foo=( a b c d )
>   echo "${(@)foo[@]}"
>
>   bar
> }
>
> function bar {
>   echo "${(P)1[@]}"
>   echo "${(kP)1[@]}"
>   ${(AA)1=bar=foo}
> }
>
> foo
>


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