Hello, here is the output:

5.8
a isa array
typeset -a omz=( 'the first' 'the last' )
'the first' 'the last'

the result from your script is in fact correct if I assign the  "${(@qq)omz}":

typeset -a omz=( 'the first' 'the last' )
a="${(@qq)omz}"
typeset -p a                  
typeset a='''the first'' ''the last'''

regards

Pier Paolo Grassi


Il giorno mar 28 set 2021 alle ore 20:31 Marc Chantreux <mc@prometheus.u-strasbg.fr> ha scritto:
hello,

    echo $ZSH_VERSION
    omz=( 'the first' 'the last' )
    echo a isa ${(t)omz}
    typeset -p omz
    echo -e "${(@qq)omz}"

gives me

    5.8
    a isa array
    typeset -a omz=( 'the first' 'the last' )
    'the first' 'the last'

note the -a when you have

    typeset a='''sa bb'' ''cc dd'''

so ${(t)omz} is probably scalar. would you mind unset a and give
my code a try ?

regards
marc