delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/09/28/10:30:58

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:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
q=dns; s=default; b=vvLmlNmVTFnd1371TVPgI2JDwtwcyR/1oSU81r4bcCn
M3OBaChpziJkAk6XR0/KDMEoKuGKtrPdDhiXGT6VLZgPDFaGbcf9clD1eWrnepLd
3tE0jLOuRzbxyTaHkfpgwmvafhdJEZDNlavT0YYoF/mQLb9XVAr2mvpSl9+1yVx0
=
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:to:subject:message-id:in-reply-to
:references:mime-version:content-type:content-transfer-encoding;
s=default; bh=97MiErHhEHob1Di/Xb4CiSUIDjc=; b=Um5UyxJvdd9bBX9Kj
u8564gtDH51uSlDYJ47mCpBvNX8Esdz/8lNIqDgjpE3WbketBVRHSQY/xe2wx7Oo
AmRK7KfFwRN2EMXuSkJawzmOGcLeyEFZ1DsQVieoqE/t+c0dUjNlfEWorLHAH4yh
EeIyZKAKFTqIcvTWCFz+Tf+7rc=
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
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=0.1 required=5.0 tests=BAYES_50,FREEMAIL_FROM,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.2
X-HELO: smtp15.mail.ru
Date: Mon, 28 Sep 2015 17:30:32 +0300
From: Mikhail Usenko <cygwin AT inbox DOT ru>
To: cygwin AT cygwin DOT com
Subject: Re: [ANNOUNCEMENT] Updated: bash-4.3.39-2
Message-Id: <20150928173032.f0a3253c068c27c077a0e18d@inbox.ru>
In-Reply-To: <560466C1.20709@redhat.com>
References: <announce DOT 556EF85C DOT 3000809 AT redhat DOT com> <20150604125154 DOT 712cbb6af2fc96c5a2306494 AT nm DOT ru> <560466C1 DOT 20709 AT redhat DOT com>
Mime-Version: 1.0
X-IsSubscribed: yes

On Thu, 24 Sep 2015 15:10:25 -0600
Eric Blake <...> wrote:
> On 06/04/2015 03:51 AM, Mikhail Usenko wrote:
> > Eric Blake (cygwin) <...> wrote:
> >> 4.3.39-2
> > 
> > Hello, Eric.
> > It has the same issue as in the previous version:
> > eating one \r from the odd numbered chains of the \r.
> > 
> 
> Please try the (currently-experimental) 4.3.42-4, which should fix the
> issues observed.
> 

On Thu, 24 Sep 2015 10:55:45 -0600
Eric Blake <...> wrote:
> 
> Jeff Downs helped me investigate off-list, and I think he found the
> culprit (a typo in input.c that requested O_TEXT when it meant B_TEXT,
> when mapping from open() flags to bash's internal B_* flags). I'm
> building a new bash build right now, and will shortly be posting it for
> testing.
> 


Hello, Eric.
Thank you for working on this annoying problem that stops
some parsing scripts (that worked in cygwin in 3-4 bash versions ago)
to work correctly and thereby so the cygwin/bash overall employing.
But catching that bug (in upstream?) hasn't changed anything
at least on my installation:

---%<---<cygwin-test.sh>---%<---
#! /bin/bash
bash -version | head -n1
echo

sender()
{
  echo -n  '\r\n' >&2
  echo -ne '\r\n'
  sleep 1
  echo -n  '\r\r\n' >&2
  echo -ne '\r\r\n'
  sleep 1
  echo -n  '\r\r\r\n' >&2
  echo -ne '\r\r\r\n'
  sleep 1
  echo -n  '\r\r\r\r\n' >&2
  echo -ne '\r\r\r\r\n'
  sleep 1
  echo -n  '\r\r\r\r\r\n' >&2
  echo -ne '\r\r\r\r\r\n'
  sleep 1
}

receiver()
{
  t=""
  while read t || [ "$t" ]; do
    echo -ne ": \t"
    od -A n -t x1  <<<"$t"
  done  >&2
}


# implicit pipe
receiver < <(sender)

# explicit pipeline
sender | receiver
--->%---<cygwin-test.sh>--->%---


$ ./cygwin-test.sh
GNU bash, version 4.3.42(4)-release (x86_64-unknown-cygwin)

\r\n:    0a
\r\r\n:          0d 0d 0a
\r\r\r\n:        0d 0d 0a
\r\r\r\r\n:      0d 0d 0d 0d 0a
\r\r\r\r\r\n:    0d 0d 0d 0d 0a
\r\n:    0a
\r\r\n:          0d 0d 0a
\r\r\r\n:        0d 0d 0a
\r\r\r\r\n:      0d 0d 0d 0d 0a
\r\r\r\r\r\n:    0d 0d 0d 0d 0a


-- 
Mike


--
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