delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2018/12/06/11:21:41

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=B57T3o4okdJsslTZ
afHCpip4YrbpF2Z2xNj6brfi993djX3qBeW8rXvJODxABlfKc3CAL6budXDxKMF1
OjzPssufP7u88H32XXNRVbSWb2O8diuQiT+kukC9qYwGHgZAdQZlm+8Vsz4l905c
txF9cLVwwnt2VwyfO3raviEc8QA=
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=1kZqjN6SFUsgLpzSsKbini
UOMkU=; b=WMDC8PYiNUHa9nz8Gb/MeSPgvPg+lxrMrKj5Oyg4hSq5bekuquQYlW
Bk27xBzyQACBKwnJFpyFlcgiR0iomkNYpYvlSnsrQNhGR5rDnru5NQ3J51U52jwB
TvZ45U66lvTR7UA+G0q60kn6wSV/JFlTc61J26s02IEBNcqDR2qPg=
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-f66.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=Uaft6fbEdGTouVlKDhl41FY7MFajJsvkohKNGAZfvYs=; b=I41reSyaIQGjVKJryv6ONC6ZK7fpbdyFxsjJpiZVKLS1aKnyHnBGeNW6ov6SmjyMmJ xjFLly2XfglS3HWZ7sDeMio9ZC+KyNle3WA9jvUG/uBgoj0fRpkAmq121hweswGgZBiu Mkjl5/ZHplVllITwwqZk3lTWpT57D+SdZ8aJNMLMoapye7yxUWbnzdcuooYiE8ms/WUT oQElDY9Cx9AmCEDVkZGyDJ3N0vKJFUixNY/bdsjySQd5Tjm6ZADjd/Ssfa7lt6E6SpMP gZf1Vebbe8fgL/jpZpetd7m4YsqqwAWgR/z/AZfshREV70WZWqUlWORi3O/A66RA6XGS DN0w==
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> <0e717bbe-df37-9fc5-d514-d1792c5778be AT gmail DOT com> <CAA5t8VqBOOhDXCEMC79LhFyT=tZptpZv2bLMwsWUDp7V705Q+Q AT mail DOT gmail DOT com>
From: cyg Simple <cygsimple AT gmail DOT com>
Message-ID: <89d6db1e-04cb-6027-4275-1a8777be6952@gmail.com>
Date: Thu, 6 Dec 2018 11:21:20 -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: <CAA5t8VqBOOhDXCEMC79LhFyT=tZptpZv2bLMwsWUDp7V705Q+Q@mail.gmail.com>
X-IsSubscribed: yes

On 12/5/2018 5:25 PM, David Karr wrote:
> On Wed, Dec 5, 2018 at 11:44 AM cyg Simple <cygsimple AT gmail DOT com> wrote:
> 
>> 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?
>>
> 
> By "say", I assume you mean the output from running "cygcheck winpty"?
> This is what I get:
> 

Yes that is what I meant by my colloquial phrase.

>      Found:
> C:\Users\myuid\frameworks\winpty-0.4.3-cygwin-2.8.0-x64\bin\winpty.exe
>      C:\Users\myuid\frameworks\winpty-0.4.3-cygwin-2.8.0-x64\bin\winpty.exe
>        C:\cygwin64\bin\cygwin1.dll
>          C:\Windows\system32\KERNEL32.dll
>            C:\Windows\system32\API-MS-Win-Core-RtlSupport-L1-1-0.dll
>            C:\Windows\system32\ntdll.dll
>            C:\Windows\system32\KERNELBASE.dll
>            C:\Windows\system32\API-MS-Win-Core-ProcessThreads-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Heap-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Memory-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Handle-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Synch-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-File-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-IO-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-ThreadPool-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-LibraryLoader-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-NamedPipe-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Misc-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-SysInfo-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Localization-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-ProcessEnvironment-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-String-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Debug-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-ErrorHandling-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Fibers-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Util-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-Profile-L1-1-0.dll
>            C:\Windows\system32\API-MS-Win-Security-Base-L1-1-0.dll
>        C:\Users\myuid\frameworks\winpty-0.4.3-cygwin-2.8.0-x64\bin\winpty.dll
>          C:\Windows\system32\ADVAPI32.dll
>            C:\Windows\system32\msvcrt.dll
>              C:\Windows\system32\API-MS-Win-Core-Console-L1-1-0.dll
>              C:\Windows\system32\API-MS-Win-Core-DateTime-L1-1-0.dll
>            C:\Windows\system32\API-MS-WIN-Service-Core-L1-1-0.dll
>            C:\Windows\system32\API-MS-WIN-Service-winsvc-L1-1-0.dll
>            C:\Windows\system32\API-MS-WIN-Service-Management-L1-1-0.dll
>            C:\Windows\system32\API-MS-WIN-Service-Management-L2-1-0.dll
>            C:\Windows\system32\API-MS-Win-Core-LocalRegistry-L1-1-0.dll
>            C:\Windows\system32\RPCRT4.dll
>              C:\Windows\system32\API-MS-Win-Core-Interlocked-L1-1-0.dll
>              C:\Windows\system32\API-MS-Win-Core-DelayLoad-L1-1-0.dll
>          C:\Windows\system32\USER32.dll
>            C:\Windows\system32\GDI32.dll
>              C:\Windows\system32\LPK.dll
>                C:\Windows\system32\USP10.dll
> 

I see nothing wrong here, time to ask winpty community what might be wrong.

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

- Raw text -


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