From: Mike Gilbert Date: Mon, 9 Feb 2026 00:12:30 +0000 (-0500) Subject: meson: use printf instead of echo X-Git-Tag: v257.11~45 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c0d23c3a34e8bf20188f43ec4a4d7967533e903;p=thirdparty%2Fsystemd.git meson: use printf instead of echo The echo builtin provided by some shells (mksh) will interpret \x2d as an escape sequence. This causes meson to fail: ``` test/fuzz/meson.build:93:52: ERROR: File fuzz-unit-file/dm-back-slash.swap does not exist. ``` Bug: https://bugs.gentoo.org/969789 (cherry picked from commit a304f6c9db8b160cd5186b7dfa3cee6d13cce2bf) (cherry picked from commit 43d2f85c438d802c62ea2aced14a75a8eb5dc9f1) (cherry picked from commit 4327b23971c31563b50657c98e1fa2b5bf7ae11d) --- diff --git a/test/fuzz/meson.build b/test/fuzz/meson.build index 48d962b520d..11a6581c5d9 100644 --- a/test/fuzz/meson.build +++ b/test/fuzz/meson.build @@ -42,7 +42,7 @@ if git.found() and fs.is_dir(meson.project_source_root() / '.git') 'ls-files', ':/@0@/*/*'.format(fuzz_testsdir), check: true) else - out = run_command(sh, '-c', 'cd "@0@"; echo @1@/*/*'.format(meson.project_source_root(), fuzz_testsdir), check: true) + out = run_command(sh, '-c', 'cd "@0@"; printf "%s " @1@/*/*'.format(meson.project_source_root(), fuzz_testsdir), check: true) endif # Add crafted fuzz inputs we have in the repo