test30.sh 211 B

123456789101112131415
  1. #! /bin/sh
  2. # Don't ask what is the right thing here...
  3. IFS=" :"
  4. var="bla:fasel:blubb:"
  5. for i in foo:bla:fasel:blubb: ; do
  6. echo val: "'"$i"'"
  7. done
  8. echo
  9. for i in foo:$var ; do
  10. echo val: "'"$i"'"
  11. done