]> git.proxmox.com Git - grub2.git/blob - tests/grub_script_gettext.in
* Merge 1.99-27.1 (thanks, Steve McIntyre):
[grub2.git] / tests / grub_script_gettext.in
1 #! @builddir@/grub-shell-tester
2 #
3 # Copyright (C) 2010,2012 Free Software Foundation, Inc.
4 #
5 # GRUB is free software: you can redistribute it and/or modify
6 # it under the terms of the GNU General Public License as published by
7 # the Free Software Foundation, either version 3 of the License, or
8 # (at your option) any later version.
9 #
10 # GRUB is distributed in the hope that it will be useful,
11 # but WITHOUT ANY WARRANTY; without even the implied warranty of
12 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 # GNU General Public License for more details.
14 #
15 # You should have received a copy of the GNU General Public License
16 # along with GRUB. If not, see <http://www.gnu.org/licenses/>.
17
18 echo $"foo"
19 echo $"foo bar"
20
21 echo -n $"foo"
22
23 echo -e $"foo\nbar"
24
25 echo -n -e $"foo\nbar"
26
27 x=5
28 echo $"$x"
29 echo $"\x\\y\$x$x\\$xx${x}x\"$x\""
30
31 echo $"$"
32 echo $"$,x"
33
34 echo $"one
35 "
36 echo $"one
37 \""
38 echo $"one
39 two"
40
41 echo one$"two
42 "three
43 echo one$"two
44 \""three
45 echo one$"two
46 \"three\"
47 four"
48
49 echo $"one\
50 "
51 echo $"one\
52 \""
53 echo $"one\
54 two"
55
56 echo one$"two\
57 "three
58 echo one$"two\
59 \""three
60 echo one$"two\
61 \"three\"\
62 four"
63
64 if test -n "$grubshell"; then insmod regexp; fi
65
66 echo $"*"
67
68 foo="*"
69 echo $"$foo"