X-Recipient: archive-cygwin@delorie.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:from:to:subject:date:message-id:content-type
	:content-transfer-encoding:mime-version; q=dns; s=default; b=lM9
	HKd15yZsBaSRsWZPDxZNfPuCayizkKvgjt9pWJtjXn9XrYo11kU+cfoamUIo9ViW
	2tNzdLXjCsl2QaiiHFfUqE/f1NxqL51bApTcRFvCxTKsaQMAqHTU3/gO0LT61NjK
	GudmIDLs+tGA0uAmRwT5aRkv4cgFEWkgKp33L4M4=
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:from:to:subject:date:message-id:content-type
	:content-transfer-encoding:mime-version; s=default; bh=hecJTYrEx
	TvMJugbhiSE6Yiqlvc=; b=XeE9gVxbQyUMqTA4+LRSTl25s2cF9MhL9065UjQCW
	YeI+BOYDszlBajQwIb7E9ZRmZFBex+1HCiiGOh+sU0xs0Iy1zVqKJagOM8jQB7x3
	xp4Mwetdr0Eyt7HoEYIe6llx2Im5fePm3jg9gKtB1lwdvy0dvIJ9ItFdRmnvvWxV
	Ls=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-2.7 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: ironport01.nordicsemi.no
From: "Cufi, Carles" <Carles.Cufi@nordicsemi.no>
To: "cygwin@cygwin.com" <cygwin@cygwin.com>,
        "kbrown@cornell.edu"	<kbrown@cornell.edu>
Subject: Re: git 2.8.3 spurious output
Date: Wed, 8 Jun 2016 14:19:10 +0000
Message-ID: <087DA9770269374FB58D517AC05CCA3F0174977E08@mbx04.nvlsi.no>
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u58EJYIW022133


> On 6/8/2016 9:57 AM, Cufi, Carles wrote:
> Hi there,
> 
> On 6/8/2016 5:35 AM, Cufi, Carles wrote:
> Hi,
> 
> When running git 2.8.3 with certain of its commands (submodule for
> example) I get spurious output on the terminal:
> 
> 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 ''
> 
> The variables referenced above (displaypath, name, url) seem to be part
> of the git-submodule script in /usr/libexec/git-core.
> 
> 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.)
> 
> That's one of the first thing I tried, I ran:
> 
> $ dos2unix /usr/libexec/git-core/git-submodule
> 
> But the spurious output is still there.
> 
> There doesn't seem to be a /usr/bin/gettext.sh in my Cygwin
> installation.
> 
> I see that you have some msys stuff in your path. Do you have gettext.sh
> there? ('which gettext.sh' should find it.)

Yep, that's it!

$ which gettext.sh
/cygdrive/c/mingw/bin/gettext.sh

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?

Thanks!

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


