When the --dry-run is passed, it is often useful to pipe the its output into less or other tools. Currently, this requires a stderr redirection 2>&1.
Reproduction
nix-build "<nixpkgs>" -A blender --dry-run | wc -l
will print
these paths will be fetched (xx.xx MiB download, xxx.xx MiB unpacked):
/nix/store/0j2r...-libXrandr-1.5.1
<... cut ...>
0
which means, that wc has counted 0 lines
Proposal
Building this redirection right into --dry-run (i.e. having it write to stdout) shouldn't break any existing use cases, since it currently doesn't write anything to stdout.
Issue Description
When the
--dry-run
is passed, it is often useful to pipe the its output intoless
or other tools. Currently, this requires a stderr redirection2>&1
.Reproduction
will print
which means, that wc has counted
0
linesProposal
Building this redirection right into
--dry-run
(i.e. having it write to stdout) shouldn't break any existing use cases, since it currently doesn't write anything to stdout.