escape $ in pseudofile

this is needed to write /etc/passwd when it contains $5$....
strings
This commit is contained in:
Daniel Barlow 2023-03-04 00:23:21 +00:00
parent 38756af1c1
commit 25a46dcb2c

View file

@ -6,7 +6,8 @@ let
inherit (lib.attrsets) mapAttrsToList; inherit (lib.attrsets) mapAttrsToList;
visit = prefix: attrset: visit = prefix: attrset:
let let
qprint = msg : builtins.replaceStrings ["\n" "=" "\""] ["=0A" "=3D" "=22"] msg; qprint = msg : builtins.replaceStrings
["\n" "=" "\"" "$"] ["=0A" "=3D" "=22" "=24"] msg;
l = l =
mapAttrsToList mapAttrsToList
(filename: attrs: (filename: attrs: