* 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
* Re: Help with getting binaries to not print ^M
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)
1 sibling, 0 replies; 3+ messages in thread
From: Andrey Repin @ 2013-11-09 13:36 UTC (permalink / raw)
To: Jason Gross, cygwin
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.
--
WBR,
Andrey Repin (anrdaemon@yandex.ru) 09.11.2013, <17:20>
Sorry for my terrible english...
--
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
* Re: Help with getting binaries to not print ^M
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)
1 sibling, 0 replies; 3+ messages in thread
From: Larry Hall (Cygwin) @ 2013-11-09 19:02 UTC (permalink / raw)
To: cygwin
On 11/8/2013 10:21 PM, Jason Gross wrote:
> 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.
<snip>
Where did you get these binaries? Please provide the output of
'cycheck ocaml' and *attach* "cygcheck -srv" output.
--
Larry
_____________________________________________________________________
A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting annoying in email?
--
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).