summaryrefslogtreecommitdiffstats
path: root/tests/grub_script_for1.in
diff options
context:
space:
mode:
Diffstat (limited to 'tests/grub_script_for1.in')
-rw-r--r--tests/grub_script_for1.in27
1 files changed, 27 insertions, 0 deletions
diff --git a/tests/grub_script_for1.in b/tests/grub_script_for1.in
new file mode 100644
index 0000000..e39a766
--- /dev/null
+++ b/tests/grub_script_for1.in
@@ -0,0 +1,27 @@
+#! @builddir@/grub-shell-tester
+
+for x in one two 'three 3' "four 4" five six-6; do echo $x; done
+
+for x in one two 'three 3' "four 4" five six-6
+do
+ echo $x
+done
+
+foo="1 2"
+for x in ab${foo}cd; do echo $x; done
+for x in "ab${foo}cd"; do echo $x; done
+
+a="one two three"
+y=foo
+echo $y
+for y in $a; do
+ echo $y
+done
+echo $y
+
+
+b="one two three"
+for z in $b; do
+ echo $z
+done
+echo $z