summaryrefslogtreecommitdiff
path: root/tests/ifs-3.test
diff options
context:
space:
mode:
Diffstat (limited to 'tests/ifs-3.test')
-rw-r--r--tests/ifs-3.test9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/ifs-3.test b/tests/ifs-3.test
new file mode 100644
index 00000000..4693792a
--- /dev/null
+++ b/tests/ifs-3.test
@@ -0,0 +1,9 @@
+OIFS=$IFS
+IFS=":$IFS"
+foo=`echo a:b:c`
+IFS=$OIFS
+
+for i in $foo
+do
+ echo $i
+done