<html><head></head><body>Much simpler to just call printf directly...<br><br><div class="gmail_quote">Le 5 juin 2019 17:15:48 GMT+03:00, Marvin Scholz <epirat07@gmail.com> a écrit :<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<pre class="k9mail">echo -n is not portable and does not print as expected on macOS and<br>possibly other BSDs. Use a helper that internally uses printf instead.<hr> contrib/bootstrap | 9 ++++++---<br> 1 file changed, 6 insertions(+), 3 deletions(-)<br><br>diff --git a/contrib/bootstrap b/contrib/bootstrap<br>index 76b200ab16..f1c6a75be6 100755<br>--- a/contrib/bootstrap<br>+++ b/contrib/bootstrap<br>@@ -38,6 +38,9 @@ usage()<br>   echo "  --enable-pdb     generate debug information in PDB format"<br> }<br> <br>+# Print without newline<br>+echo_n() { printf "%s" "$*"; }<br>+<br> BUILD=<br> HOST=<br> PREFIX=<br>@@ -124,7 +127,7 @@ fi<br> <br> if test -z "$BUILD"<br> then<br>-   echo -n "Guessing build system... "<br>+        echo_n "Guessing build system... "<br>  BUILD="`${CC:-cc} -dumpmachine | sed s/windows-gnu/mingw32/`"<br>       if test -z "$BUILD"; then<br>           echo "FAIL!"<br>@@ -135,12 +138,12 @@ fi<br> <br> if test -z "$HOST"<br> then<br>-    echo -n "Guessing host system...  "<br>+        echo_n "Guessing host system...  "<br>  HOST="$BUILD"<br>       echo "$HOST"<br> fi<br> <br>-echo -n "Packages licensing...    "<br>+echo_n "Packages licensing...    "<br> if test -n "$GPL"<br> then<br>    if test -n "$GNUV3"</pre></blockquote></div><br>-- <br>Envoyé de mon appareil Android avec Courriel K-9 Mail. Veuillez excuser ma brièveté.</body></html>