Clarify ambiguity in nix-instantiate man page

This commit is contained in:
Rebecca Turner 2024-01-12 11:31:49 -08:00
parent 2d96c7a51f
commit f73e50144f
No known key found for this signature in database

View file

@ -44,9 +44,10 @@ standard input.
> **Warning**
>
> This option produces ambiguous output which is not suitable for machine
> consumption. For example, these two Nix expressions print the same result
> despite having different types:
> This option produces output which can be parsed as a Nix expression which
> will produce a different result than the input expression when evaluated.
> For example, these two Nix expressions print the same result despite
> having different meaning:
>
> ```console
> $ nix-instantiate --eval --expr '{ a = {}; }'