From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86057 invoked by alias); 8 Jun 2016 14:41:51 -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 86043 invoked by uid 89); 8 Jun 2016 14:41:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.9 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=H*F:D*no X-HELO: ironport02.nordicsemi.no Received: from mail.nordicsemi.no (HELO ironport02.nordicsemi.no) (194.19.86.146) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 08 Jun 2016 14:41:40 +0000 Received: from cas01.nvlsi.no ([192.9.200.217]) by ironport02.nordicsemi.no with ESMTP; 08 Jun 2016 16:41:37 +0200 Received: from MBX04.nvlsi.no ([fe80::6912:55af:448c:53f4]) by CAS01.nvlsi.no ([fe80::3dd1:adee:84bb:4a87%14]) with mapi id 14.03.0123.003; Wed, 8 Jun 2016 16:41:37 +0200 From: "Cufi, Carles" To: "kbrown@cornell.edu" , "cygwin@cygwin.com" Subject: Re: git 2.8.3 spurious output Date: Wed, 08 Jun 2016 14:41:00 -0000 Message-ID: <087DA9770269374FB58D517AC05CCA3F0174977EA8@mbx04.nvlsi.no> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-SW-Source: 2016-06/txt/msg00112.txt.bz2 > On 6/8/2016 10:19 AM, Cufi, Carles wrote: >=20 > On 6/8/2016 9:57 AM, Cufi, Carles wrote: > Hi there, >=20 > On 6/8/2016 5:35 AM, Cufi, Carles wrote: > Hi, >=20 > When running git 2.8.3 with certain of its commands (submodule for > example) I get spurious output on the terminal: >=20 > cacu ~/src/nordic/gh/pc-ble-driver-py (master) $ git submodule deinit . > ': not a valid identifiertext.sh: line 88: export: `displaypath Cleared > directory '' > ': not a valid identifiertext.sh: line 88: export: `name > ': not a valid identifiertext.sh: line 88: export: `url > ': not a valid identifiertext.sh: line 88: export: `displaypath > Submodule '' () unregistered for path '' >=20 > The variables referenced above (displaypath, name, url) seem to be part > of the git-submodule script in /usr/libexec/git-core. >=20 > It looks like output lines are being overwritten, which suggests that > you have DOS line endings somewhere (maybe in git-submodule?). For > example, there seems to be a reference to line 88 of gettext.sh, > partially overwritten by something else. (Notice that git-submodule > calls eval_gettext many times; the latter is defined in > /usr/bin/gettext.sh.) >=20 > That's one of the first thing I tried, I ran: >=20 > $ dos2unix /usr/libexec/git-core/git-submodule >=20 > But the spurious output is still there. >=20 > There doesn't seem to be a /usr/bin/gettext.sh in my Cygwin > installation. >=20 > I see that you have some msys stuff in your path. Do you have gettext.sh > there? ('which gettext.sh' should find it.) >=20 > Yep, that's it! >=20 > $ which gettext.sh > /cygdrive/c/mingw/bin/gettext.sh >=20 > So what's the better way of fixing this? Making /mingw/bin/gettext.sh > have UNIX line endings or replacing it with the proper Cygwin gettext.sh > that I seem to be missing? >=20 > One solution would be to install Cygwin's gettext package, so that > Cygwin's gettext.sh precedes MinGW's in your path. (Note that git > doesn't require gettext; it's not needed because git-sh-i18n provides a > definition of eval_gettext on systems that don't have it. This worked like a charm. Installed cygwin's own gettext package and now I = get no more spurious output. Thanks so much for that. > In general, however, it seems to me that you're asking for trouble by > having MinGW binaries in your path while working in Cygwin. Yep, I want to do that but the problem is that Cygwin inherits the global P= ATH from Windows and MinGW is present there. I guess I could somehow remove= it from the path with a script in my .bashrc when bash opens. Thanks again, Carles -- 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