public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Help with getting binaries to not print ^M
@ 2013-11-09  3:21 Jason Gross
  2013-11-09 13:36 ` Andrey Repin
  2013-11-09 19:02 ` Larry Hall (Cygwin)
  0 siblings, 2 replies; 3+ messages in thread
From: Jason Gross @ 2013-11-09  3:21 UTC (permalink / raw)
  To: cygwin

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.
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.

Thanks in advance.

-Jason

--
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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-11-09 19:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-09  3:21 Help with getting binaries to not print ^M Jason Gross
2013-11-09 13:36 ` Andrey Repin
2013-11-09 19:02 ` Larry Hall (Cygwin)

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).