<#17470 Weird stdout redirection behavior> Issue c...
# github-notifications
q
#17470 Weird stdout redirection behavior Issue created by benjyw
Copy code
$ ./pants version > version.stdout 2> version.stderr
$ wc -l version.stdout 
   1 version.stdout
$ wc -l version.stderr
   0 version.stderr
$ # Makes sense, version emits to stdout
$
$ ./pants version > version.stdout 
$ wc -l version.stdout 
   0 version.stdout
$ wc -l version.stderr
   0 version.stderr
$ # What? Where did the output go?
This is due to #16822, although it is unclear why. Reverting that change fixes this. Note that it doesn't reproduce when running pants in an integration test. pantsbuild/pants
u