Open Quuxplusone opened 9 years ago
Bugzilla Link | PR22659 |
Status | NEW |
Importance | P normal |
Reported by | Nickolas Pokhylets (pohilets@gmail.com) |
Reported on | 2015-02-21 15:20:37 -0800 |
Last modified on | 2015-02-22 13:02:00 -0800 |
Version | 3.6 |
Hardware | PC MacOS X |
CC | david.majnemer@gmail.com, llvm-bugs@lists.llvm.org, rafael@espindo.la |
Fixed by commit(s) | |
Attachments | |
Blocks | |
Blocked by | |
See also |
Why do you expect the file to be truncated?
Because that is what a shell does when it launches a process with I/O redirect.
It's quite surprising to see some rubbish after normal output, and, AFAIK,
explicitly truncating stdout (from child process) is not a common practice in
C/C++ programs.