Hello, I have something likea=('aa bb' 'cc dd');and I would like to get the quoted representation inside a string, so thatecho -e $b'aa bb' 'cc dd'or thattypeset -p bgives'''aa bb'' ''cc dd'''I tried witha=(sa\ bb cc\ dd); b="${(q+)a[@]}"; typeset -p b
typeset b='''sa bb cc dd'''and other inconclusive variationsPier Paolo Grassi