delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/11/10/07:58:01

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 2CB9D3857C46
Authentication-Results: sourceware.org;
dmarc=none (p=none dis=none) header.from=dinwoodie.org
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=adam AT dinwoodie DOT org
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=dinwoodie.org; s=google;
h=mime-version:references:in-reply-to:from:date:message-id:subject:to
:content-transfer-encoding;
bh=x1U/2jmjCQP1Ys5xK6iMrwmLMd0MRR0cPGH4TpiKh0Y=;
b=VCD12vLcr6qWrbTWHJXlYfo6Nd5+mqA/IcmqWbwxYgyX6GIa6Cgj+mR2QZuHX3oBNi
D8SUNtZEFXDlYgdItq/saeIjiekYKufZA4h0R5VGJXKhZAdvjn3PCDR2byR7cJ5B3y1v
CwvVNp7CD8Ywu5jVB3YBpuU+J/HodZXVmZoQI=
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20161025;
h=x-gm-message-state:mime-version:references:in-reply-to:from:date
:message-id:subject:to:content-transfer-encoding;
bh=x1U/2jmjCQP1Ys5xK6iMrwmLMd0MRR0cPGH4TpiKh0Y=;
b=fBu6qHXZrZP6YzKFsM53pQW2v/P5f0W02CfIu9cbg2DpHNKHAvVATukRxvIRYeeAe4
ghtcCVd/aU4K198J7hJxpGBZV0JoyxDmSno5UEXs1DZUXahZGBjACHeCikM6w1e+o2Iw
jnrbQL3JYbCyfbisWPqApX7adbxkjjQ6D+ekQbYOl80OG/VIRZqz5umwzcPnRi57a78/
75mnhbc3UgSW04tlCp7Kg0o+bep2UAaf4vwuUwwHqA1UDwUGVM7fXt2/NtlSJeD0ATgZ
L3fiAfaWF3nBsgU2cQxERkVa0lQ5Jl/HdCXOes9TEqxyZynY5rJ4oEsJjLSyA9m2ywui
nmHg==
X-Gm-Message-State: AOAM530XVJgkbsxlh+cz//BTWotnfFT2uvZ02P3N962dDyqTj+ZWpakd
Ck2NsL1ibUOR7YLMA3jhXiAPP3AEUdpJsv7Wt7qGWF/h6V/ttQ==
X-Google-Smtp-Source: ABdhPJzawGJg6b0K9OcJ2VxnPuxLjLH2tqOiimN5g1Oqq35aAQUh1nVfbLGgbvz81J02m6lGQ3Xe6HQa6diNjWLtKdM=
X-Received: by 2002:a05:6830:1d8f:: with SMTP id
y15mr13626595oti.332.1605013032142;
Tue, 10 Nov 2020 04:57:12 -0800 (PST)
MIME-Version: 1.0
References: <7f84cfbe25454067bc2841a83306f7de AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu>
<CA+kUOamscrjvXDrw_QW3XZ2wEvEjzFWyTsZfKThke9+Z+-7jYQ AT mail DOT gmail DOT com>
<72f4f32d00e44071afbaa74b6b77ebad AT BELBRU-EXMP101 DOT eeas DOT europa DOT eu>
In-Reply-To: <72f4f32d00e44071afbaa74b6b77ebad@BELBRU-EXMP101.eeas.europa.eu>
From: Adam Dinwoodie <adam AT dinwoodie DOT org>
Date: Tue, 10 Nov 2020 12:56:36 +0000
Message-ID: <CA+kUOa=FAVSofOx05rAsK04aX8Pn=-=Ktgd_0wqR5xdy1e+X2A@mail.gmail.com>
Subject: Re: Git shows nothing in cmd.exe
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,
SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0AACvg2f025879

On Tue, 10 Nov 2020 at 12:19, KAVALAGIOS Panagiotis (EEAS-EXT)  wrote:
>
> > -----Original Message-----
> > From: Cygwin <cygwin-bounces AT cygwin DOT com> On Behalf Of Adam
> > Dinwoodie
> > Sent: 10 November 2020 13:04
> > Subject: Re: Git shows nothing in cmd.exe
> >
> > On Tue, 10 Nov 2020 at 10:35, KAVALAGIOS Panagiotis (EEAS-EXT) wrote:
> > > Hello,
> > >
> > > I would like to report an issue with git. The following command:
> > >
> > > $ git branch -a
> > > * master
> > >   remotes/origin/master
> > >
> > > works fine under Cygwin terminal, but it displays nothing under
> > > cmd.exe. We are using
> > >
> > > git version 2.21.0
> > >
> > > and
> > >
> > > CYGWIN_NT-10.0 XXX 3.1.4(0.340/5/3) 2020-02-19 08:49 x86_64 Cygwin
> > >
> > > The "set CYGWIN=disable_pcon" in the cmd.exe didn't help.
> >
> > Can you please provide the output from running `where.exe git` in a cmd.exe
> > session, as well as the diagnostics requested in the problem reporting
> > guidelines below?
>
> Sure, the command shows the following:
>
> C:\>where.exe git
> C:\Program Files\Cygwin\bin\git.exe
> C:\Program Files\Git\cmd\git.exe
>
> Of course the Git for Windows installed is not affected by that issue. It works also fine under cmd.exe.
>
> > > Problem reports:      https://cygwin.com/problems.html
> >
> > Given that, we'll be able to help work out what's going wrong for you.
>
> I apologise for forgetting that. I have included it in my present e-mail.
>
> > For what it's worth, having just checked, running Cygwin Git from a cmd.exe
> > shell works as expected for me.
>
> OK, thanks. It's good to know that Adam. So it is possibly something in our configuration or BLODA.

Thoughts below partly for my own reference, and partly in case anyone
else – including but not limited to Panos! – manages to take things
further before I do.

I can't see anything obviously wrong here. There's two key oddities
that might be causing problems, though:

- Cygwin is installed in `C:\Program Files\Cygwin`; that _should_
work, but it's atypical, and spaces in filenames are a common source
of problems.

- This is a relatively old installation; I've not checked anything
else, but Cygwin Git v2.21.0-1 was released in May 2019 and there have
been a bunch of updates since then. I can't remember anything with
these symptoms from that time, however.

I'm also curious about the Git configuration here, as I can see a
bunch of ways that could cause problems. I don't have the Cygwin bin
directory in my path to test this immediately, but for example `git
branch -a` will try to call a pager – `less` by default` – so I could
imagine there being a PATH problem or similar that's resulting in a
duff pager call that's eating the output.
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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