diff --git a/ChangeLog b/ChangeLog index b746cb197..e110b318b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2012-06-27 Yves Blusseau + + * util/grub-mkconfig_lib.in: Fix print messages replacing builtin + echo shell command by printf command. + 2012-06-26 Vladimir Serbinenko * grub-core/term/arc/console.c (grub_console_init_output): Add one since diff --git a/util/grub-mkconfig_lib.in b/util/grub-mkconfig_lib.in index 2b887b195..76133b4c1 100644 --- a/util/grub-mkconfig_lib.in +++ b/util/grub-mkconfig_lib.in @@ -35,7 +35,7 @@ if which gettext >/dev/null 2>/dev/null; then : else gettext () { - echo -n "$@" + printf "%s" "$@" } fi @@ -308,14 +308,14 @@ print_option_help () { print_option_help_lead=" $1" print_option_help_lspace="$(echo "$print_option_help_lead" | wc $print_option_help_wc)" print_option_help_fill="$((26 - print_option_help_lspace))" - echo -n "$print_option_help_lead" + printf "%s" "$print_option_help_lead" if test $print_option_help_fill -le 0; then print_option_help_nl=y echo else print_option_help_i=0; while test $print_option_help_i -lt $print_option_help_fill; do - echo -n " " + printf " " print_option_help_i=$((print_option_help_i+1)) done print_option_help_nl=n