Here is the code I need:
#!/bin/sh
x1="a1 a2"
x2="b1 b2"
list=SOMETHING
for x in "$list"
do
echo $x
done
And the conclusion I want is:
a1 a2
b1 b2
Question: what should be SOMETHING? I want to $listbehave the same way $@.
Notes: I can not use $IFS, and I can not evalcycle.
dandu source
share