public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: "Cufi, Carles" <Carles.Cufi@nordicsemi.no>
To: "kbrown@cornell.edu" <kbrown@cornell.edu>,
	"cygwin@cygwin.com"	<cygwin@cygwin.com>
Subject: Re: git 2.8.3 spurious output
Date: Wed, 08 Jun 2016 14:41:00 -0000	[thread overview]
Message-ID: <087DA9770269374FB58D517AC05CCA3F0174977EA8@mbx04.nvlsi.no> (raw)

> On 6/8/2016 10:19 AM, Cufi, Carles wrote:
> 
> 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?
> 
> 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 PATH 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

             reply	other threads:[~2016-06-08 14:41 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-08 14:41 Cufi, Carles [this message]
2016-06-08 16:45 ` Achim Gratz
  -- strict thread matches above, loose matches on Subject: below --
2016-06-09  7:52 Cufi, Carles
2016-06-09 19:37 ` Warren Young
2016-06-11 19:20   ` Brian Inglis
2016-06-08 14:19 Cufi, Carles
2016-06-08 14:27 ` Ken Brown
2016-06-08 14:33 ` Warren Young
2016-06-08 13:57 Cufi, Carles
2016-06-08 14:06 ` Ken Brown
2016-06-08  9:35 Cufi, Carles
2016-06-08 13:45 ` Ken Brown
2016-06-08 13:56   ` Ken Brown

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=087DA9770269374FB58D517AC05CCA3F0174977EA8@mbx04.nvlsi.no \
    --to=carles.cufi@nordicsemi.no \
    --cc=cygwin@cygwin.com \
    --cc=kbrown@cornell.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).