]>
Commit | Line | Data |
---|---|---|
2aa16463 BC |
1 | #! @builddir@/grub-shell-tester |
2 | ||
3 | echo one | |
4 | foo="" | |
5 | while test "$foo" != "1111"; do foo="${foo}1"; echo "$foo"; done | |
6 | ||
7 | echo two | |
8 | foo="" | |
9 | while test "$foo" != "aaaa" | |
10 | do | |
11 | foo="${foo}a" | |
12 | echo $foo | |
13 | done | |
14 | ||
15 | foo="" | |
16 | until test "$foo" = "1111"; do foo="${foo}1"; echo $foo; done | |
17 | foo="" | |
18 | until test "$foo" = "aaaa" | |
19 | do | |
20 | foo="${foo}a" | |
21 | echo $foo | |
22 | done | |
23 | ||
24 | # check "$?" in condition gets its value from while body commands | |
25 | foo="" | |
26 | false | |
27 | while test "$?" != "0" | |
28 | do | |
29 | echo $foo | |
30 | foo="${foo}1" | |
31 | test "$foo" = "111111" | |
32 | done |