From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7700 Path: news.gmane.org!not-for-mail From: u-wsnj@aetey.se Newsgroups: gmane.linux.lib.musl.general Subject: Re: [PATCH] Build process uses script to add CFI directives to x86 asm Date: Tue, 19 May 2015 13:16:22 +0200 Message-ID: <20150519111622.GF8197@example.net> References: <1432027874-1820-1-git-send-email-alexinbeijing@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1432034223 25761 80.91.229.3 (19 May 2015 11:17:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 19 May 2015 11:17:03 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-7712-gllmg-musl=m.gmane.org@lists.openwall.com Tue May 19 13:17:03 2015 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1YufW8-0005MC-FL for gllmg-musl@m.gmane.org; Tue, 19 May 2015 13:17:00 +0200 Original-Received: (qmail 24380 invoked by uid 550); 19 May 2015 11:16:58 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 24355 invoked from network); 19 May 2015 11:16:58 -0000 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Received-SPF: none receiver=mailfe09.swip.net; client-ip=194.150.168.79; envelope-from=u-wsnj@aetey.se Content-Disposition: inline In-Reply-To: <1432027874-1820-1-git-send-email-alexinbeijing@gmail.com> Xref: news.gmane.org gmane.linux.lib.musl.general:7700 Archived-At: 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