mailing list of musl libc
 help / color / mirror / code / Atom feed
From: u-wsnj@aetey.se
To: musl@lists.openwall.com
Subject: Re: [PATCH] Build process uses script to add CFI directives to x86 asm
Date: Tue, 19 May 2015 13:16:22 +0200	[thread overview]
Message-ID: <20150519111622.GF8197@example.net> (raw)
In-Reply-To: <1432027874-1820-1-git-send-email-alexinbeijing@gmail.com>

On Tue, May 19, 2015 at 11:31:14AM +0200, Alex Dowad wrote:
> awk code with not a word of complaint. The only trouble was with the use of "echo"
> in the configure script -- BusyBox ash's "echo" is different from bash's.

Indeed, portable sh scripts should be using printf instead of echo,
every time.

echo(){ printf '%s\n' "$@"; }

yields a well-behaving "plain" echo variant.

If one needs some special tricks, printf covers more cases than echo anyway.

I may be wrong but I am not aware of a "nowadays practically useful"
platform where printf is not available (even if we do not consider a
possibility to make it available).

Rune



  reply	other threads:[~2015-05-19 11:16 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-05-19  9:31 Alex Dowad
2015-05-19 11:16 ` u-wsnj [this message]
2015-05-19 11:43   ` Szabolcs Nagy
  -- strict thread matches above, loose matches on Subject: below --
2015-05-20 17:08 Alex Dowad
2015-05-19 16:22 Alex Dowad
2015-05-16 13:54 Alex Dowad
2015-05-18 13:34 ` Szabolcs Nagy
2015-05-18 15:52 ` Rich Felker

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150519111622.GF8197@example.net \
    --to=u-wsnj@aetey.se \
    --cc=musl@lists.openwall.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).