This is the mail archive of the
mailing list for the Cygwin project.
Re: stdout output missing, but redirecting works
On 12/9/2011 2:47 PM, Brian Craft wrote:
I compiled a program yesterday which output some lines to stdout. It
appeared to be working. Running it today, I get nothing on stdout.
However, if I redirect stdout to a file, the correct output appears in
the file. E.g.
# no output
# "hello world" in bar
In between yesterday and today, I've rebooted and run rebaseall, so
perhaps one of those is responsible for the change.
Sounds like buffering to me. Is this program compiled with Cygwin's gcc
or something else? What kind of terminal are you running it in? Same one
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple