You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a pretty weird one, and I might be filing it in the wrong place, but hopefully someone smarter than me can figure this out.
The symptom is this: If I create an XML document and use puts to write it to STDOUT, it does so. However, if I try to pipe or redirect the output of the script, it writes nothing.
I've been having a very similar issue in ruby 2.2.4
iff using libxml to read through a document, stdout buffering does not get flushed on process exit
perhaps some kind of crash or failure in the libxml finalizers?
The reason it works for the original filer on the command line and not the redirected script is that stdout is line buffered by default for ruby when attached to a terminal (so the puts flushes immediately) but when redirecting to a file it's just generally buffered.
This is a pretty weird one, and I might be filing it in the wrong place, but hopefully someone smarter than me can figure this out.
The symptom is this: If I create an XML document and use
puts
to write it to STDOUT, it does so. However, if I try to pipe or redirect the output of the script, it writes nothing.Using:
And the following script:
If run from the command line, it works as expected:
But put it inside bundler, and this happens:
I've been able to duplicate this in ruby 2.2.0, but not in ruby 2.1.5.
The text was updated successfully, but these errors were encountered: