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

segfault



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