delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2005/05/09/06:04:22

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <427F361E.F4EFA3BB@dessent.net>
Date: Mon, 09 May 2005 03:06:22 -0700
From: Brian Dessent <brian AT dessent DOT net>
MIME-Version: 1.0
To: "'cygwin AT cygwin DOT com'" <cygwin AT cygwin DOT com>
Subject: Re: echo "$(echo '\r')" oddity
References: <D1D50F9C5151D2119FF000104BB3F9B708E1B75B AT NL-ROT-MAIL02>
X-IsSubscribed: yes
Reply-To: cygwin AT cygwin DOT com

Jan Just Keijser wrote:

> in interactive mode the command seems to work fine. What happens if you
> build socat and then run the test script (./test.sh) ? Which tests does it
> fail on?

test.sh fails on the openssl test for me too.  I can't really follow
exactly what the testcase is doing though.  It looks like there's a race
condition somewhere because you get the previous command's output with
each command:

$ socat -t0.1 exec:'openssl s_server -accept 12009 -quiet -cert
cacert.pem -key privkey.pem' pipe &

$ echo -n "1" | socat -t0.1  -
openssl:localhost:12009,cafile=cacert.pem,verify=1

$ echo -n "2" | socat -t0.1  -
openssl:localhost:12009,cafile=cacert.pem,verify=1
1
$ echo -n "3" | socat -t0.1  -
openssl:localhost:12009,cafile=cacert.pem,verify=1
2
$ echo -n "4" | socat -t0.1  -
openssl:localhost:12009,cafile=cacert.pem,verify=1
3

I don't know what's going there.  You'd probably have to delve into an
strace to find out.

Brian

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


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