2 Commits

Author SHA1 Message Date
Raito Bezarius
48cb369917 lib/tests/strings.sh: don't pin the exact error wording
The test asserted the exact stderr of `nix-instantiate` when coercing a
missing path. That wording is implementation-defined and subject to
change: it differs between CppNix and Lix, and it can change between CppNix
releases too.

Only check that evaluation fails and that the error names the missing
path.
2026-10-15 02:36:20 +02:00
Ryan Hendrickson
c5ba1a0b3a lib.escapeShellArg: handle paths
Path values should be copied into the store if they're going to be used
in a shell script. In other words, `"my-command ${arg}"` and
`"my-command ${lib.escapeShellArg arg}"` should always do the same thing
if `arg` is a path; it should not be the case that the first is safe and
the second results in an out-of-store reference.
2026-08-24 20:10:20 -04:00