Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm 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 Message-ID: <427F361E.F4EFA3BB@dessent.net> Date: Mon, 09 May 2005 03:06:22 -0700 From: Brian Dessent MIME-Version: 1.0 To: "'cygwin AT cygwin DOT com'" Subject: Re: echo "$(echo '\r')" oddity References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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/