This is the mail archive of the
mailing list for the Cygwin project.
Re: Help with getting binaries to not print ^M
- From: Andrey Repin <anrdaemon at yandex dot ru>
- To: Jason Gross <jasongross9 at gmail dot com>, cygwin at cygwin dot com
- Date: Sat, 9 Nov 2013 17:22:25 +0400
- Subject: Re: Help with getting binaries to not print ^M
- Authentication-results: sourceware.org; auth=none
- References: <CAKObCaoCpoUf+3SFO96FcHS73yYoKKTN=yP5RdMScdg5x8ka+g at mail dot gmail dot com>
- Reply-to: Andrey Repin <cygwin at cygwin dot com>
Greetings, Jason Gross!
> I have some precompiled binaries (from, e.g., ocaml, gtk+). When I
> install them to a location like D:\OCaml\bin and run them, the output
> has a ^M at the end of every line. When I copy the binaries to a
> cygwin path (something that doesn't get translated to /cygdrive/),
> they work fine. This messes with all of my build scripts, which
> except things like `ocamlc -where` not to have a trailing ^M. So I
> tried moving them to D:\cygwin64\, and this fixed some of the
> problems, but it's still broken in some cases, like when `ocamlc
> -where` gives "D:/cygwin64/OCaml/lib"
> and then a build script later calls `D:/cygwin64/OCaml/bin/ocamlc -where`, and the ^M's come back.
Wait, what? WHY it calls the binary by a windows path, in first place?
> It seems very broken to me that the output of an executable should
> depend in this way on how it's called. If it's relevant, I updated
> cygwin-x86_64 earlier today, and mount gives me
> $ mount
> D:/cygwin64/bin on /usr/bin type ntfs (binary,auto)
> D:/cygwin64/lib on /usr/lib type ntfs (binary,auto)
> D:/cygwin64 on / type ntfs (binary,auto)
> C: on /cygdrive/c type ntfs (binary,posix=0,user,noumount,auto)
> D: on /cygdrive/d type ntfs (binary,posix=0,user,noumount,auto)
> E: on /cygdrive/e type ntfs (binary,posix=0,user,noumount,auto)
> Y: on /cygdrive/y type afs (binary,posix=0,user,noumount,auto)
> Z: on /cygdrive/z type afs (binary,posix=0,user,noumount,auto)
> Anyway, I'd like to know how to fix this without manually sticking in
> code to strip ^M in all of my build scripts.
Andrey Repin (firstname.lastname@example.org) 09.11.2013, <17:20>
Sorry for my terrible english...
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple