merged with mainline
This commit is contained in:
commit
dae0d05f2d
50 changed files with 1089 additions and 1503 deletions
14
tests/grub_script_blanklines.in
Normal file
14
tests/grub_script_blanklines.in
Normal file
|
@ -0,0 +1,14 @@
|
|||
#! /bin/sh -e
|
||||
|
||||
@builddir@/grub-script-check <<EOF
|
||||
# comment 1
|
||||
|
||||
command1 arg1
|
||||
|
||||
command2 arg2
|
||||
|
||||
|
||||
|
||||
last command
|
||||
# comment 2
|
||||
EOF
|
27
tests/grub_script_for1.in
Normal file
27
tests/grub_script_for1.in
Normal file
|
@ -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
|
Loading…
Add table
Add a link
Reference in a new issue