title: A variable as a list
body: <p>I am on Solaris 2.10 with ksh "Version M-11/16/88i".</p>
  
  <p>I have some problems with the list in a "for".</p>
  
  <p>First example works as I want:</p>
  
  <pre><code>#!/bin/ksh
  for i in ONE "one is 1" TWO "two is 2" THREE three
  do
  echo $i
  done
  </code></pre>
  
  <p>The output of this is:</p>
  
  <pre><code>&gt; ./mytest.ksh 
  ONE
  one is 1
  TWO
  two is 2
  THREE
  three
  &gt; 
  </code></pre>
  
  <p>But, if I change the code to something like this:</p>
  
  <pre><code>#!/bin/ksh
  MYVAR="ONE \"one is 1\" TWO \"two is 2\" THREE three"
  echo "MYVAR=$MYVAR"
  for i in $MYVAR
  do
  echo $i
  done
  </code></pre>
  
  <p>Then the output is:</p>
  
  <pre><code>&gt; ./mytest.ksh 
  MYVAR=ONE "one is 1" TWO "two is 2" THREE three
  ONE
  "one
  is
  1"
  TWO
  "two
  is
  2"
  THREE
  three
  &gt;
  </code></pre>
  
  <p>How could I keep the values in the variable MYVAR so as the loop FOR takes it correctly?
  Thanks.</p>