改变标准输入输出的缓冲方式。和 unbuffer 不同的是,stdbuf 采用的方式是 LD_PRELOAD 而不是 pty。
[1]
python2 -u some_program |& stdbuf -i0 -oL ascii2uni -qaU | ascii2uni -qa7
-u