Upgraded GRUB2 to 2.00 release.
[AROS.git] / arch / all-pc / boot / grub2-aros / tests / grub_script_echo1.in
blob3a07972a9fdd104b2e6040a26a4595ddf5d45b1d
1 #! @builddir@/grub-shell-tester
3 # Run GRUB script in a Qemu instance
4 # Copyright (C) 2010  Free Software Foundation, Inc.
6 # GRUB is free software: you can redistribute it and/or modify
7 # it under the terms of the GNU General Public License as published by
8 # the Free Software Foundation, either version 3 of the License, or
9 # (at your option) any later version.
11 # GRUB is distributed in the hope that it will be useful,
12 # but WITHOUT ANY WARRANTY; without even the implied warranty of
13 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 # GNU General Public License for more details.
16 # You should have received a copy of the GNU General Public License
17 # along with GRUB.  If not, see <http://www.gnu.org/licenses/>.
19 # simple arguments
20 echo one two three
21 echo "one two three"
22 echo 'one two three'
23  echo "one two three"
24    echo "one two three"
25         echo "one two three"
27 # empty arguments
28 echo a "" b
29 echo a '' b
31 echo a $foo b
32 echo a ${foo} b
34 echo a "$foo" b
35 echo a "${foo}" b
37 # multi-part arguments
38 echo one"two"three
39 echo one${two}three
40 echo one"two"$three
42 echo one'two'three
43 echo one${two}three
44 echo one'two'$three
46 echo one'two'three"four"five${six}seven$eight
49 foo=bar
50 echo $foo ${foo}
51 echo "$foo" "${foo}"
52 echo '$foo' '${foo}'
53 echo a$foob a${foo}b
54 echo ab"cd"ef$foo'gh'ij${foo}kl\ mn\"op\'qr\$st\(uv\<wx\>yz\)
56 foo=c
57 bar=h
58 echo e"$foo"${bar}o
59 e"$foo"${bar}o hello world
61 foo=echo
62 $foo 1234
64 echo "one
66 echo "one
67 \""
68 echo "one
69 two"
71 echo one"two
72 "three
73 echo one"two
74 \""three
75 echo one"two
76 \"three\"
77 four"
80 echo 'one
82 echo 'one
84 echo 'one
85 two'
86 echo one'two
88 echo one'two
90 echo one'two
91 \'three
93 echo "one\
95 echo "one\
96 \""
97 echo "one\
98 two"
100 # echo "one\
101 # two"
102 # echo 'one\
103 # two'
104 # echo foo\
105 # bar
106 # \
107 # echo foo
108 # echo "one
110 # two"
112 echo "one
114 echo "one
115  \""
116 echo "one
117  two"
119 echo one"two
120  "three
121 echo one"two
122  \""three
123 echo one"two
124 \"three\"
125  four"
126         
127 echo 'one
129 echo 'one
130  \'
131 echo 'one
132  two'
133 echo one'two
135 echo one'two
136  \'
137 echo one'two
138  \'three
140 echo "one\
142 echo "one\
143  \""
144 echo "one\
145  two"
147 echo one \
148  two
150 echo one x\
151  two
153 echo one x\
154 "x" two
155 echo one x\
156 'x' two
157 echo one x\
158 \\ two
160 echo one x\
164 echo one x\
168 echo one x\
171 echo one x\
172 $var
175 if test x$grubshell = xyes; then insmod regexp; fi
176 echo /boot/grub/i386-pc/normal.mod
177 echo x\\y
178 echo x\*y
179 echo x\\
180 echo x\\\\
181 echo x\\\\y