Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-06 Thread cyg Simple
On 12/5/2018 5:25 PM, David Karr wrote: On Wed, Dec 5, 2018 at 11:44 AM cyg Simple wrote: On 12/5/2018 1:33 PM, David Karr wrote: On Wed, Dec 5, 2018 at 9:43 AM cyg Simple wrote: Your query got me interested in looking and I believe that winpty needs to be at the front of all the

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-05 Thread David Karr
On Wed, Dec 5, 2018 at 4:20 PM Andrey Repin wrote: > Greetings, David Karr! > > > Sigh. What a mess. I can't get this to work. It was easy enough when a > > single script has to execute "kubectl", having "winpty" prefix that call, > > but I'm trying to write a script that calls that other

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-05 Thread Andrey Repin
Greetings, David Karr! > Sigh. What a mess. I can't get this to work. It was easy enough when a > single script has to execute "kubectl", having "winpty" prefix that call, > but I'm trying to write a script that calls that other script, and even in > a pipeline. > If I have "winpty" prefix the

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-05 Thread David Karr
On Wed, Dec 5, 2018 at 11:44 AM cyg Simple wrote: > On 12/5/2018 1:33 PM, David Karr wrote: > > On Wed, Dec 5, 2018 at 9:43 AM cyg Simple wrote: > > > >> > >> Your query got me interested in looking and I believe that winpty needs > >> to be at the front of all the commands so that it can

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-05 Thread cyg Simple
On 12/5/2018 1:33 PM, David Karr wrote: On Wed, Dec 5, 2018 at 9:43 AM cyg Simple wrote: Your query got me interested in looking and I believe that winpty needs to be at the front of all the commands so that it can communicate with mintty properly. To overcome the need to remember you could

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-05 Thread David Karr
On Wed, Dec 5, 2018 at 9:43 AM cyg Simple wrote: > On 12/5/2018 10:11 AM, David Karr wrote: > > On Tue, Dec 4, 2018 at 12:52 PM Marco Atzeri > wrote: > > > >> Am 04.12.2018 um 21:41 schrieb David Karr: > >>> "CYGWIN_NT-6.1 WACDTL03DK068X 2.9.0(0.318/5/3)" > >>> > >>> I installed a version of

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-05 Thread cyg Simple
On 12/5/2018 10:11 AM, David Karr wrote: On Tue, Dec 4, 2018 at 12:52 PM Marco Atzeri wrote: Am 04.12.2018 um 21:41 schrieb David Karr: "CYGWIN_NT-6.1 WACDTL03DK068X 2.9.0(0.318/5/3)" I installed a version of "kubectl" for windows, and I use it extensively in Cygwin bash for scripting

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-05 Thread David Karr
On Tue, Dec 4, 2018 at 12:52 PM Marco Atzeri wrote: > Am 04.12.2018 um 21:41 schrieb David Karr: > > "CYGWIN_NT-6.1 WACDTL03DK068X 2.9.0(0.318/5/3)" > > > > I installed a version of "kubectl" for windows, and I use it extensively > in > > Cygwin bash for scripting command-line automation. In

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-05 Thread David Karr
On Tue, Dec 4, 2018 at 12:52 PM Marco Atzeri wrote: > Am 04.12.2018 um 21:41 schrieb David Karr: > > "CYGWIN_NT-6.1 WACDTL03DK068X 2.9.0(0.318/5/3)" > > > > I installed a version of "kubectl" for windows, and I use it extensively > in > > Cygwin bash for scripting command-line automation. In

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-04 Thread cyg Simple
On 12/4/2018 3:52 PM, Marco Atzeri wrote: Am 04.12.2018 um 21:41 schrieb David Karr: "CYGWIN_NT-6.1 WACDTL03DK068X 2.9.0(0.318/5/3)" I installed a version of "kubectl" for windows, and I use it extensively in Cygwin bash for scripting command-line automation. In general, this works perfectly

Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux

2018-12-04 Thread Marco Atzeri
Am 04.12.2018 um 21:41 schrieb David Karr: "CYGWIN_NT-6.1 WACDTL03DK068X 2.9.0(0.318/5/3)" I installed a version of "kubectl" for windows, and I use it extensively in Cygwin bash for scripting command-line automation. In general, this works perfectly fine. I even use the same scripting in a