Akim Demaille <Akim.Demaille <at> lrde.epita.fr> writes:
> --- util/texi2dvi 16 Jun 2008 10:33:25 -0000 1.128
> +++ util/texi2dvi 18 Jun 2008 08:19:18 -0000
> @@ -269,6 +269,15 @@
> # Display usage and exit successfully.
> usage ()
> {
> + # We used to simply have `echo "$usage"', but coping with the
> + # changing behavior of `echo' is much harder than simply using a
> + # here-doc.
> + #
> + # echo '\noto' echo '\\noto' echo -e '\\noto'
> + # bash 3.1 \noto \\noto \noto
> + # bash 3.2 %oto \noto -e \noto
This sounds wrong. bash 3.2 echo '\noto' doesn't output %oto any more than
3.1 did. 3.1 introduced the xpg_echo option, though, maybe your distro sets
that by default now.
Sounds like it is time for $echo in texi2dvi (current Autoconf has $as_echo,
Libtool has $ECHO, all with varying degrees of bug-testing), and default that
to 'printf %s\n' if echo isn't good and 'print -r' isn't available. At least
the latter two don't waste a process. You can stick with a here doc for long
outputs (to avoid printf bugs) like usage().
Cheers,
Ralf