delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/12/18/02:01:43

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 <towo AT towo DOT net>
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: <b4864b490912171545w6dd3fddaxacf1f0f0d0ecae56 AT mail DOT gmail DOT com>
In-Reply-To: <b4864b490912171545w6dd3fddaxacf1f0f0d0ecae56@mail.gmail.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019