Zsh string variable containing multi words must be assigned to an array
-1
votes
1
answer
471
views
How to have Zsh string variable containing multi words separated by space be assigned to an array so that each word is the array element
s='run help behind me'
a=($s)
m=${a}
n=${a}
print "m=$m"
echo n=$n
m=
n=run help behind me
confusing, so simple but still cannot do it so..
Really please help out
Asked by user571604
May 15, 2023, 09:56 AM
Last activity: May 15, 2023, 07:19 PM
Last activity: May 15, 2023, 07:19 PM