4 ms·
with the stderred LD_PRELOAD alias this works for me: stderred python -c 'import os; print "Yo!"; os.write(2, "Jola\n\r")' but this doesn't; stderred ruby -e 'p
by anko 15y ago
with the stderred LD_PRELOAD alias
this works for me:
stderred python -c 'import os; print "Yo!"; os.write(2, "Jola\n\r")'
but this doesn't;
stderred ruby -e 'puts "Yo!";STDERR.write "Jola\n\r"'
if i do an strace the writes are going to the same file descriptors.. any ideas?
- sickill 15y agoMaybe ruby's write() is not using write() from libc but other function like fprintf?