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