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

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:mime-version:from:date:message-id:subject:to
:content-type; q=dns; s=default; b=CjXa96qlcSdl/roRmPrltdV2hD0gC
Gdcc2uKUZM7csNNth9Z3sTP+yisuqzjAX0U6o4C0E579wfMrcFGNzTU+0tiiju/C
XdjCAHgM1wewdGQZ+Fq7loef82Y/3t7E+obpycczZz5GK0eD2EgeksaJ3sQypvYw
DulW2rROXJYISQ=
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:mime-version:from:date:message-id:subject:to
:content-type; s=default; bh=iOcP204+q24OtKA8Z63Vxx6/NbE=; b=OHU
X+ddOB4LJzGoZPpPOzIG3ggVGQkuVqCMhuAg6MPw4fNIbSta6KHCYr2UttRGBV06
8nF2ToZfFuCvdeAJszWIoo2/Zxiqid3e+pQPqEL3PcK6PeBHBl81G8qsdpjJX0hB
oqG1r7eU11qe0lBb5HpQ+Bf9PS93Z3Bb+T82V9nE=
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.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=automation, H*c:alternative, extensively, installed
X-HELO: mail-ed1-f52.google.com
MIME-Version: 1.0
From: David Karr <davidmichaelkarr AT gmail DOT com>
Date: Tue, 4 Dec 2018 12:41:08 -0800
Message-ID: <CAA5t8VrSPx-LgmwCJCzTTHwA8wV6Lq5iMfjx06ApDQRPgx8ByA@mail.gmail.com>
Subject: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux
To: The Cygwin Mailing List <cygwin AT cygwin DOT com>
X-IsSubscribed: yes

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

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