He is correct to advocate printf. There is an entry in the bash FAQ in relation to portable programming that endorses his view.
On Jul 25, 2012 5:37 PM, "Miguel de Benito Delgado" <
address@hidden> wrote:
Any thoughts on this anyone? I know very little about shell
compatibility issues..
________________
Miguel de Benito.
On Mon, Jul 23, 2012 at 6:34 AM, Bernd Losert <address@hidden> wrote:
> I am not sure if this has been pointed out or not, but a lot of the
> plugin code in src/plugins/*/bin/tm_* uses the echo command in such a
> way that it only works correctly if your shell is bash. I use zsh as
> my shell and when I run something like xypic for example, I always get
> these -n when the session starts. To avoid this issue, I suggest
> rewriting anything with echo with printf instead as the behavior of
> printf is the same across *NIX systems, unlike with echo.
>
> --
> Bernd
>
> _______________________________________________
> Texmacs-dev mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/texmacs-dev
_______________________________________________
Texmacs-dev mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/texmacs-dev