bug-texinfo
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: texi2dvi --version


From: Ralf Wildenhues
Subject: Re: FYI: texi2dvi --version
Date: Mon, 23 Jun 2008 09:27:20 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]