Hello, I have something like
a=('aa bb' 'cc dd');
and I would like to get the quoted representation inside a string, so that
echo -e $b
'aa bb' 'cc dd'
or that
typeset -p b
gives
'''aa bb'' ''cc dd'''
I tried with
a=(sa\ bb cc\ dd); b="${(q+)a[@]}"; typeset -p b
typeset b='''sa bb cc dd'''
and other inconclusive variations