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:in-reply-to:references:from:date :message-id:subject:to:content-type; q=dns; s=default; b=FHgUY46 C0o3G0hUdNE6mlxlm0B1O8Pnb4X6llBLcVETvu8SSrg4Xl4zsYk3A2CHGMQ5ubrt Q//e7AMPwkFNa7n4ASIRnG8emZmYrVgiNQwvIYpy9bG3xxO7jGJbijzrdoe687vb 1BC5H+il2lHzm3RAJ6TtrTIVLNzfn6SflHRI= 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:in-reply-to:references:from:date :message-id:subject:to:content-type; s=default; bh=5+e13Kiv30GvR 59yEI6G/iKKaxs=; b=V5gTrmCDsnkNsER1vFCznb2zP7vO4k3dhxrnuz5z7gKvs T76I6DIucs/gGrO9DTTybPE37HeK4WRh6jqb6LpXAHgBaDl11x1/63NwL+DXwNRO WIsf3RwxM8r0RKceaY9fAXuoHbKFM5YoVhKOyjEhpumY8l2Zcky6fxzZCXY3GE= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , 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=AWL,BAYES_00,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy=laptop, H*r:sk:s17-v6s, H*c:alternative X-HELO: mail-vk0-f42.google.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=SfRn36TGfgdLai1PQng1EWNDYezIlt/0d8T9mkdzuJA=; b=h6NmnMoolG8KqRBZ+XlkkDtZXhzNo4iWG7KkUUYF5HSuep1QBQWS204zzphyLZxtBK Xr3wI4YCEcslVhB5P1twgqKpYBgO+EdXDUJP5WuRPEF/I13O8p7tKS1ZJwininEA2bAH pnOLXWZ8m8253RTe7s9gLxpEr93TjCI68xhB5K55t/wBbmG+iHuM1OW+rQFKjQAAlzxD 8uVwdr4mUN/R57wf7JA+BN/VjpIkQTCL5LMB6AoRnNRy5nHXfBMN94SZgq+6KRNA+vwR 8TeJdjrBUT4If2YeluMXxGyAfp3KVZXWwvGERxiRgRpSzdoQI/U1XQrJzJT2Tpsb9Qz+ 7S+w== MIME-Version: 1.0 In-Reply-To: References: <6646b33b-ed7f-1078-6754-12259bf094e7 AT towo DOT net> From: David Karr Date: Tue, 31 Jul 2018 13:34:30 -0700 Message-ID: Subject: Re: Any reason Cygwin might prevent kubectl exec from showing shell prompt? To: The Cygwin Mailing List Content-Type: text/plain; charset="UTF-8" X-IsSubscribed: yes And I note that I tried running the same script from a Linux VM on my laptop, and it doesn't have this symptom, so it does seem to have something to do with Cygwin or Windows. On Tue, Jul 31, 2018 at 1:15 PM, David Karr wrote: > On Tue, Jul 31, 2018 at 9:27 AM, Thomas Wolff wrote: > >> Am 31.07.2018 um 18:15 schrieb David Karr: >> >>> I really have no idea if this is a Cygwin problem, just trying to >>> eliminate variables. >>> >>> I believe my Cygwin version is "2.9.0(0.318/5/3)" (from the uname >>> string). >>> >>> From a mintty window, I use a variation of "kubectl exec" in a script to >>> run a shell in a container in a pod. It appears to run, and I can run >>> processes from that shell in the container, but the curious thing is >>> that I >>> never get a shell prompt from the container. I thought I had gotten this >>> to work before, in the same k8s cluster, but I'm not certain. >>> >> This may be an instance of the pty incompatibility issue of native >> Windows programs (which I assume kubectl to be). >> Try `winpty kubectl`, after installing winpty, that is. >> Maybe someone should put up a winpty cygwin package; maybe I should do >> it... >> > > I hope this isn't it. This is really the only issue I have with running > kubectl in Cygwin. It takes and outputs text perfectly fine. I use pipes > for input and output with no issues. When I run kubectl with winpty, it > changes the text encoding in ways I don't understand yet. > > > >> >> The other curious thing I see is that if I execute "echo $PS1" in the >>> shell >>> in the container, it gives me a reasonable response ("\w \$"), but if I >>> instead do "env | grep PS1", it returns nothing. >>> >> You may have set PS1 in your .profile (or .bashrc) but not exported it >> into the environment (export PS1). >> > > I guess that makes sense. It appears to be irrelevant to my problem. > > -- 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