Re: bash pipe fails in script with subshell/loop cmbination

2017-08-08 Thread cyg Simple
On 8/8/2017 10:59 AM, Nellis, Kenneth wrote:
> SHTDI and, sadly, such a task is not in my skill set.)
> 

Nothing like attempting to do it to add skills to your set.  This isn't
a valid reason not to do it.  It is only a valid reason that it would
take longer than someone else who might attempt it, assuming someone
else would even try for which there is no guarantee.  So if you want to
see this idea implemented, just do it.

-- 
cyg Simple

--
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



Re: bash pipe fails in script with subshell/loop cmbination

2017-08-08 Thread Achim Gratz
Wouter van Doorn writes:
> I've run into a problem regarding pipes in bash, in a command that
> loops. I've reduced it to a very small one-liner that fails.

WJFFM.  Unless it's down (again) to your somewhat bizarre PATH settings,
you're most likely looking at some BLODA that tries to follow each
forked process and can't keep up at some point.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

Waldorf MIDI Implementation & additional documentation:
http://Synth.Stromeko.net/Downloads.html#WaldorfDocs

--
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



RE: bash pipe fails in script with subshell/loop cmbination

2017-08-08 Thread Nellis, Kenneth
> From: Eliot Moss 
> It also works for me.  If it is not a version issue, then I
> wonder about BLODA.  Maybe anti-virus or similar tools are
> wrapping process creation in such a way that things get
> confused.  Try cygcheck, etc.

BTW, it also works for me.

With so many Cygwin issues being attributed to BLODA, I wonder 
if there is a reasonably small set of things that BLODA breaks 
that could be tested in code, and that such a bloda-checking 
program could be added to the package repertoire? (Of course, 
SHTDI and, sadly, such a task is not in my skill set.)

--Ken Nellis


Re: bash pipe fails in script with subshell/loop cmbination

2017-08-08 Thread Eliot Moss

On 8/8/2017 10:20 AM, Ronald Fischer wrote:


TWO - this fails, apparently (warning: my guess) at the pipe
$ for j in 1 2;do echo $j $(echo hello | cat);done
1
2


This works for me:

$ for j in 1 2;do echo $j $(echo hello | cat);done
1 hello
2 hello


It also works for me.  If it is not a version issue, then I
wonder about BLODA.  Maybe anti-virus or similar tools are
wrapping process creation in such a way that things get
confused.  Try cygcheck, etc.

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



Re: bash pipe fails in script with subshell/loop cmbination

2017-08-08 Thread Ronald Fischer
> 
> TWO - this fails, apparently (warning: my guess) at the pipe
> $ for j in 1 2;do echo $j $(echo hello | cat);done
> 1
> 2

This works for me:

$ for j in 1 2;do echo $j $(echo hello | cat);done
1 hello
2 hello

I have:

GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)

Ronald

--
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



Re: bash pipe fails in script with subshell/loop cmbination

2017-08-08 Thread Ronald Otto Valentin Fischer
> 
> TWO - this fails, apparently (warning: my guess) at the pipe
> $ for j in 1 2;do echo $j $(echo hello | cat);done
> 1
> 2

This works for me:

$ for j in 1 2;do echo $j $(echo hello | cat);done
1 hello
2 hello

I have:

GNU bash, version 4.4.12(3)-release (x86_64-unknown-cygwin)

Ronald
-- 
Ronald Fischer 
http://www.fusshuhn.de/

--
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