zsh compat: separate variable declaration from first set