delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/12/04/15:52:48

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; q=dns; s=default; b=cHmr84krUUzJl4Xu
fQSmvDZcvU91Kd/PE0fPJHl5/sQLdiqNx0bGeXbJ4x4mMDQmRdkHSDYJj7VxEumB
5zHaiF87ebfn3c1lA/P8vEKAOphi1ZM064LfYaQePWsQuGtaPCtx7Fqb8u0ccXjN
3KNWzoNIE58H6FuyJfTJxJCRyZo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:subject:to:references:from:message-id:date
:mime-version:in-reply-to:content-type
:content-transfer-encoding; s=default; bh=P1JxL6aZdO16X/SEP+iZ2u
Edjc8=; b=QcEFOYC4gpkP0Y5DIdVJ28gZrxRGcKyMmM+ZG//5sk9KsXn5847zhG
CXoJlrwrdrDJjlhoQ6o9GiDgBjpdS6PrlGIDPsDZicw/9+oWL0fwH8oCqnF0BbSP
Cwoom0ZJ6b7WvBkLccNWICS+d2U69uuN9qrN9cRggldeJ17x+lONU=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Spam-SWARE-Status: No, score=1.8 required=5.0 tests=BAYES_50,FOREIGN_BODY,FREEMAIL_FROM,GIT_PATCH_2,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=no version=3.3.2 spammy=auf, EMail, E-Mail, 04122018
X-HELO: mail-wm1-f53.google.com
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-transfer-encoding; bh=VCT3iDTQpU3aqjt95EHAL0wxeyosGnYl7RJB3aQsVik=; b=CN8GTDDHngyUFCM8WBeMnqrM7pOeNPAZFefCBep5OQ/ZwCckhOrVJzaXfwmFxqLntv 85/fGcTdaJ2nC+XYGcpmVRAkdgurl5GaSA2JyyUAbRR7bmonrxGJrVlBJWohBKDFfnFL tOpM58JuWYqAQr9Btso6J5LAgeJRpApDMQl5xUV9HFJ1OPWfDL1syfEkB88IGUYIZi0r aMcPv6uYwkVw+0rto3y4ojmGX+3aXk54P9/SSeWqPiEPjQLvQh8ATZ11J+fjTn/m4xB9 W01sFymgqpceYoN3+DJIB0jbxR6HcBlNFw9BqBsyeC4FyAeE59fo+nAMJeoNeazCOhMg /M9g==
Subject: Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux
To: cygwin AT cygwin DOT com
References: <CAA5t8VrSPx-LgmwCJCzTTHwA8wV6Lq5iMfjx06ApDQRPgx8ByA AT mail DOT gmail DOT com>
From: Marco Atzeri <marco DOT atzeri AT gmail DOT com>
Message-ID: <6cc83f4b-b0b1-d5c9-8d59-94c51382e4e3@gmail.com>
Date: Tue, 4 Dec 2018 21:52:34 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.3.2
MIME-Version: 1.0
In-Reply-To: <CAA5t8VrSPx-LgmwCJCzTTHwA8wV6Lq5iMfjx06ApDQRPgx8ByA@mail.gmail.com>
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id wB4Kqk9u032655

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 Linux VM.
>
> I'm seeing an issue with one script that works fine in the Linux VM, but
> not in Cygwin.
>
> The command line is approximately this:
>
>       kubectl exec pod -c container -i -t -- grep "string" stuff.properties
> 2>&1 | sed -e 's/^propname=//'
>
> In Linux, this works perfectly fine.  In Cygwin, it says "stdout is not a
> tty".
>
> I haven't updated my local Cygwin installation for quite a while. I'd
> prefer not to, unless there is a strong chance this kind of thing would be
> fixed.
>

as kubectl is not a Cygwin program, it is not aware of cygwin pty.
You can try to use winpty to overcome the problem.

https://github.com/rprichard/winpty



---
Diese E-Mail wurde von Avast Antivirus-Software auf Viren geprüft.
https://www.avast.com/antivirus


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


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019