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

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

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

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

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

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

bash pipe fails in script with subshell/loop cmbination

2017-08-08 Thread Wouter van Doorn
Hi all, 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. The two versions below should, I'm sure, give the same output - but they don't. I know the command is silly and useless as it is shown here, but it's what I'm