X-Recipient: archive-cygwin AT delorie DOT com DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; q=dns; s=default; b=GSShvh6xtsaaK9DE 9fPJsbrFiN7W3VfuLD9KXxGwAAw+N0abT7lY3PI13n1v+kXFHaeeSnMH4n2OrVs7 6ZwYjW7/bgDkm6CGSFB98dFuXVN/P67rdCAHXFV1Wh3vV5rc6ZXG/eynNkMLlaQN 3LC8MWkNNBJL6c29qhkTTwL6n7c= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:date:from:reply-to:message-id:to:subject :in-reply-to:references:mime-version:content-type :content-transfer-encoding; s=default; bh=7lFWE9hv+YwSlYSC2CZedL pkyH4=; b=Dx+UMyy+be0B8M+wW3gy/lnwSiXsnxg9z/7GC21eRd7pk7ObEzim1P yAl25X51HrjszwXp+XRhXK5m0xX1w2W6QqIqa0OiyGm7pgU2aaWRCfk6x6GTvVz3 sIhj7eNy4o+ePQadKnyYN50/4hrjzQYOxdLwcyHsXnkQnCIsxs0xs= Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.8 required=5.0 tests=AWL,BAYES_50,FREEMAIL_FROM,KAM_THEBAT,RDNS_NONE,SPF_SOFTFAIL,URIBL_BLOCKED autolearn=no version=3.3.2 X-HELO: smtpback.ht-systems.ru Date: Sat, 9 Nov 2013 17:22:25 +0400 From: Andrey Repin Reply-To: Andrey Repin Message-ID: <135106686.20131109172225@mtu-net.ru> To: Jason Gross , cygwin AT cygwin DOT com Subject: Re: Help with getting binaries to not print ^M In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 AT yandex DOT 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