On 8/18/2018 8:36 AM, Donald Krieger via cygwin wrote:
Dear list,
I require line buffered output from program1 and line buffered input to
program2.The following works under Linux but not under Cygwin. stdbuf -oL -eL
program 1 |& program2
I've searched the archive without success.I have tried -o0 -e0 -i0 and have
also tried
stdbuf -oL -eL program1 |& stdbuf -i0 program2
I have a fresh installation of cygwin as of a few months ago: uname -a
yields:CYGWIN_NT-10.0 DESKTOP-S92525R 2.10.0(0.325/5/3) 2018-02-02 15:16
x86_64 Cygwin
stdbuf --version yields:stdbuf (GNU coreutils) 8.26Packaged by Cygwin
(8.26-2)Copyright (C) 2016 Free Software Foundation, Inc....
Some thoughts to consider:
- -i0 means unbuffered; did you write the wrong description above?
- As noted in the strbuf man page, some programs don't use streams and thus are
not affected by strbuf settings. I agree this is not something likely to
change for the same program ported from Linux to Cygwin.
- How do you have line endings set up on Cygwin or in any files you are
processing? The usual Windows line ending being CR-LF instead of Linux's
LF can confuse some programs.
It might also help potential responders to know a little more about what
program1 and
program2 are. Are they Windows or Cygwin programs?
Regards - EM
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple