delorie.com/archives/browse.cgi | search |
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=T8Ay0XnodMr9aag2 | |
X14X4slPVj8lGWz0rhh7uFIt7x0xhNTQCSXKfsCz9QxqjUg/DFyE6i1r8i4GtAq5 | |
PMDbPvABeF2YIwD7XccPewXTx6aARTY1szCX4ak6RkgqsBJ5y6w9UrCWcPUlkY5h | |
a0ZWqBZDKNcFmR8cju9qLpSlP4g= | |
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=/Id6cV7G3z2A9Rd+dO5rL8 | |
PsYdk=; b=N57rZ4WSmY8gt7u25FJXu3H6ixSRG6KHLJX+34MWONuwVH5jDOdB5Y | |
WAdz1BuE4hOAiP4Ho2jbrMtGLDMpSghWyjx+NlUGB4jkTJc0CdlgEzbCwjZy4E9V | |
SqgWiW4MTqoa9BSpZpgBrbSWy0DhXsQ8r6c8Sc1w7ddT4CJovI1mE= | |
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,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=query |
X-HELO: | mail-io1-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-language:content-transfer-encoding; bh=Lm633gUeds9LzewEGPpnQRNtps3g+8GKq+fsKkIcEPs=; b=HDaHqb2i0bejziuZoeo0NMhqsYtK4ztw1/2No8eQj9KSUdNVsCYp6AeT6dsYVWALuO 60GKrKmahKi/GyX/XN0GEq+OlHtGlanGss/R9GlZEzm41JJT9V61AK14C2bf5eEWG7Qb sIBGGdWFiiOMPOi26ecYqgSrrjyJJ9esptkj7ZMp4YtfOe3s7uRu/YrvRLhqspXP8WgV IA/jj8sm9FWC+Zg6EtZXkN1FHzPELy8pqtB99grvHHu4vE+IklG9P1e+1Ene2zBv1awp 8U4g4h7ZvETjGB1/5+i5GEr77ZyU5PtlvwVRPsmt2SXGHU+i3vtNc7nTDCCEhu+GGx3A cvjA== |
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> <6cc83f4b-b0b1-d5c9-8d59-94c51382e4e3 AT gmail DOT com> <CAA5t8VoFRu2ai3c9tVTxAAVBWJg2fUMQWPr8jgjcs-67vUR60g AT mail DOT gmail DOT com> <37f0fb9b-5d70-ea1f-b1fc-1cd3f3ad0fa7 AT gmail DOT com> <CAA5t8VpcYy_tTYHTmJMmA4x3-kSJ91ZgBn0j5C=9hehKyhnxuQ AT mail DOT gmail DOT com> |
From: | cyg Simple <cygsimple AT gmail DOT com> |
Message-ID: | <0e717bbe-df37-9fc5-d514-d1792c5778be@gmail.com> |
Date: | Wed, 5 Dec 2018 14:43:33 -0500 |
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: | <CAA5t8VpcYy_tTYHTmJMmA4x3-kSJ91ZgBn0j5C=9hehKyhnxuQ@mail.gmail.com> |
X-IsSubscribed: | yes |
On 12/5/2018 1:33 PM, David Karr wrote: > On Wed, Dec 5, 2018 at 9:43 AM cyg Simple <cygsimple AT gmail DOT com> 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 add an >> alias to execute the command; `alias FOO="winpty FOO"'. >> > > 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 call to the script that calls "kubectl", it > says: > > winpty: error: cannot start '...': Not found in PATH > > When I changed it so it references the absolute path, it then says "%1 is > not a valid Win32 application. (error 0xc1)". So, this makes it clear that > winpty can only directly execute Windows applications, which makes sense. > > So how can I call a Windows application from more than just the top-level > script? > What does cygcheck say about your winpty? You are using the Cygwin compiled version, correct? -- 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |