X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00,SARE_SUB_OBFU_Q0,SPF_HELO_PASS X-Spam-Check-By: sourceware.org Message-ID: <4B2B28AE.9030505@towo.net> Date: Fri, 18 Dec 2009 08:01:02 +0100 From: Thomas Wolff User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: cygwin AT cygwin DOT com Subject: Re: Cygwin 1.7 - backquoting, carriage returns and the removal of binmode References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes 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 Ryan Dortmans schrieb: > Hi, > > I have been having issues with backquoting DOS (text mode) programs in > Cygwin 1.7. For example, for the following command: > > echo `example-prog` aaa > > I would expect output to be: > > hello world aaa > > However, the carriage return is being including in the output, resulting in: > > aaalo world > > This issue has been raised before in the mailing lists, with the > solution being to set the CYGWIN environment variable to include > "nobinmode". This option has been removed in 1.7. ... It might be a good idea to remove the final CRLF for command line output embedding even without the igncr option as this context is a somewhat special case. Removing the final LF (standard shell behavior) isn't binary-transparent either - it's a convenience function. Thomas -- 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