From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23248 invoked by alias); 9 Nov 2013 03:21:51 -0000 Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner@cygwin.com Mail-Followup-To: cygwin@cygwin.com Received: (qmail 23235 invoked by uid 89); 9 Nov 2013 03:21:50 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=AWL,BAYES_00,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,RDNS_NONE,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-pa0-f42.google.com Received: from Unknown (HELO mail-pa0-f42.google.com) (209.85.220.42) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-SHA encrypted) ESMTPS; Sat, 09 Nov 2013 03:21:49 +0000 Received: by mail-pa0-f42.google.com with SMTP id kp14so3066733pab.1 for ; Fri, 08 Nov 2013 19:21:41 -0800 (PST) X-Received: by 10.68.196.69 with SMTP id ik5mr18395745pbc.132.1383967301594; Fri, 08 Nov 2013 19:21:41 -0800 (PST) MIME-Version: 1.0 Received: by 10.70.72.231 with HTTP; Fri, 8 Nov 2013 19:21:11 -0800 (PST) From: Jason Gross Date: Sat, 09 Nov 2013 03:21:00 -0000 Message-ID: Subject: Help with getting binaries to not print ^M To: cygwin Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-11/txt/msg00197.txt.bz2 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