diff options
author | Peder Bergebakken Sundt <pbsds@hotmail.com> | 2023-11-22 19:48:45 +0100 |
---|---|---|
committer | misuzu <bakalolka@gmail.com> | 2024-02-29 08:43:24 +0200 |
commit | 407b3d1a92c53c23829f8fb887b3172539b81066 (patch) | |
tree | f10f252f267c692214540563fbbc47f2031518c3 | |
parent | 8e0416b05d86783f7c052d511c9d3a5c5691084d (diff) |
stdenv: substituteStream: escape echoed pattern in --replace mismatch warning
-rw-r--r-- | pkgs/stdenv/generic/setup.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkgs/stdenv/generic/setup.sh b/pkgs/stdenv/generic/setup.sh index a3dc2e8378a27..71c0f32cd9632 100644 --- a/pkgs/stdenv/generic/setup.sh +++ b/pkgs/stdenv/generic/setup.sh @@ -852,10 +852,10 @@ substituteStream() { if [ "${!var}" == "$savedvar" ]; then if [ -z "$is_required" ]; then if [ -z "$is_quiet" ]; then - echo "substituteStream(): WARNING: pattern '$pattern' doesn't match anything in $description" >&2 + printf "substituteStream(): WARNING: pattern %q doesn't match anything in %s\n" "$pattern" "$description" >&2 fi else - echo "substituteStream(): ERROR: pattern '$pattern' doesn't match anything in $description" >&2 + printf "substituteStream(): ERROR: pattern %q doesn't match anything in %s\n" "$pattern" "$description" >&2 return 1 fi fi |