Changeset 4dfeba3 in rtems for bootstrap

Timestamp:
03/09/18 15:38:31 (6 years ago)
Author:
Amaan Cheval <amaan.cheval@…>
Branches:
5, master
Children:
2ef85b1
Parents:
16f4661f
git-author:
Amaan Cheval <amaan.cheval@…> (03/09/18 15:38:31)
git-committer:
Joel Sherrill <joel@…> (03/09/18 19:16:01)
Message:

bootstrap: Use printf instead of echo -e for POSIX shells

On POSIX compliant shells, echo does not have the -e option.
This causes the "-e" to be echoed as well, causing potential buggy
build processes.

Example shell session:

-> % sh
$ echo -e "foo bar"
-e foo bar
$

According to POSIX, "\$" should be fine regardless due to the use of
double-quotes[1]. However, since printf is recommended over echo anyway,
we replace "echo -e" with printf where required.

[1] http://pubs.opengroup.org/onlinepubs/009695399/utilities/xcu_chap02.html#tag_02_02_03

(No files)

Note: See TracChangeset for help on using the changeset viewer.