1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-07-10 04:43:53 +02:00

Escape ${ in strings when printing Nix expressions

Otherwise the result of the printing can't be parsed back correctly by
Nix (because the unescaped `${` will be parsed as the begining of an
anti-quotation).

Fix #3989
This commit is contained in:
regnat 2020-09-14 17:19:25 +02:00
parent a59e77d9e5
commit 250f8a4bba
3 changed files with 3 additions and 2 deletions

View file

@ -13,7 +13,7 @@ let
builder = ./user-envs.builder.sh;
} // {
meta = {
description = "A silly test package";
description = "A silly test package with some \${escaped anti-quotation} in it";
};
});