From: Eliot Moss <moss@cs.umass.edu>
To: cygwin@cygwin.com
Subject: Re: stdbuf does not work
Date: Sat, 18 Aug 2018 15:27:00 -0000 [thread overview]
Message-ID: <a679a9c3-be81-741b-532e-b3560933f97b@cs.umass.edu> (raw)
In-Reply-To: <1925552125.164706.1534595788839@mail.yahoo.com>
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
next prev parent reply other threads:[~2018-08-18 13:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1925552125.164706.1534595788839.ref@mail.yahoo.com>
2018-08-18 15:23 ` Donald Krieger via cygwin
2018-08-18 15:27 ` Eliot Moss [this message]
2018-08-18 17:01 ` Donald Krieger via cygwin
2018-08-18 20:17 ` Eliot Moss
2018-08-18 22:31 ` Marco Atzeri
2018-08-19 0:47 ` Eliot Moss
[not found] <1573638389.438706.1534689231242.ref@mail.yahoo.com>
2018-08-19 17:22 ` Donald Krieger via cygwin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=a679a9c3-be81-741b-532e-b3560933f97b@cs.umass.edu \
--to=moss@cs.umass.edu \
--cc=cygwin@cygwin.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).