grub_script_gettext.in 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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. echo $"foo"
  18. echo $"foo bar"
  19. echo -n $"foo"
  20. echo -e $"foo\nbar"
  21. echo -n -e $"foo\nbar"
  22. x=5
  23. echo $"$x"
  24. echo $"\x\\y\$x$x\\$xx${x}x\"$x\""
  25. echo $"$"
  26. echo $"$,x"
  27. echo $"one
  28. "
  29. echo $"one
  30. \""
  31. echo $"one
  32. two"
  33. echo one$"two
  34. "three
  35. echo one$"two
  36. \""three
  37. echo one$"two
  38. \"three\"
  39. four"
  40. echo $"one\
  41. "
  42. echo $"one\
  43. \""
  44. echo $"one\
  45. two"
  46. echo one$"two\
  47. "three
  48. echo one$"two\
  49. \""three
  50. echo one$"two\
  51. \"three\"\
  52. four"
  53. if test -n "$grubshell"; then insmod regexp; fi
  54. echo $"*"
  55. foo="*"
  56. echo $"$foo"