From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 58393 invoked by alias); 5 Dec 2018 19:43:42 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 58368 invoked by uid 89); 5 Dec 2018 19:43:40 -0000 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 Received: from mail-io1-f53.google.com (HELO mail-io1-f53.google.com) (209.85.166.53) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 05 Dec 2018 19:43:38 +0000 Received: by mail-io1-f53.google.com with SMTP id r200so17665201iod.11 for ; Wed, 05 Dec 2018 11:43:38 -0800 (PST) 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== Return-Path: Received: from [192.168.0.5] (d47-69-109-131.nap.wideopenwest.com. [69.47.131.109]) by smtp.gmail.com with ESMTPSA id r139sm11000198ior.53.2018.12.05.11.43.35 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 05 Dec 2018 11:43:36 -0800 (PST) Subject: Re: Redirecting stderr to stdout through pipe doesn't work the way it does in Linux To: cygwin@cygwin.com References: <6cc83f4b-b0b1-d5c9-8d59-94c51382e4e3@gmail.com> <37f0fb9b-5d70-ea1f-b1fc-1cd3f3ad0fa7@gmail.com> From: cyg Simple Message-ID: <0e717bbe-df37-9fc5-d514-d1792c5778be@gmail.com> Date: Wed, 05 Dec 2018 19:43:00 -0000 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: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2018-12/txt/msg00054.txt.bz2 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 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