From: Sergey V. Lobanov Date: Wed, 9 Feb 2022 21:02:17 +0000 (+0300) Subject: wafsamba: replace 'echo -n' with printf X-Git-Tag: tevent-0.12.0~736 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=29f11005f56ebc2202e7883ea4d9ca7e7a46d9bb;p=thirdparty%2Fsamba.git wafsamba: replace 'echo -n' with printf This patch makes samba_cross.py compatible with old bash (e.g. 3.2) Signed-off-by: Sergey V. Lobanov Reviewed-by: Christof Schmitt Reviewed-by: Andreas Schneider Autobuild-User(master): Andreas Schneider Autobuild-Date(master): Fri Feb 11 07:58:57 UTC 2022 on sn-devel-184 --- diff --git a/buildtools/wafsamba/samba_cross.py b/buildtools/wafsamba/samba_cross.py index 0868a855a0d..c6f8c2a0ef2 100644 --- a/buildtools/wafsamba/samba_cross.py +++ b/buildtools/wafsamba/samba_cross.py @@ -134,7 +134,7 @@ class cross_Popen(Utils.subprocess.Popen): cross_answers_incomplete = True add_answer(ca_file, msg, ans) (retcode, retstring) = ans - args = ['/bin/sh', '-c', "echo -n '%s'; exit %d" % (retstring, retcode)] + args = ['/bin/sh', '-c', "printf %%s '%s'; exit %d" % (retstring, retcode)] real_Popen.__init__(*(obj, args), **kw)