X-Recipient: archive-cygwin@delorie.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:from:to:cc:subject:content-type
	:content-transfer-encoding:in-reply-to:references:date
	:message-id:mime-version; q=dns; s=default; b=Ogdk3ltQ3FU/b17NtB
	QrJZk4xupi84W+GPu097GkRQ53fkVyxGPDrRy1zElQB+SliFUYIhIIxoqj2+s8P8
	8Yep1cHY+5U0gGkYaIg+LbVCs4426NPXFjvqK+s7bJdJWRESgQyHBqZK/FTt/Y0t
	BYCg92HRg2fzm3lBZUwg9T66U=
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:from:to:cc:subject:content-type
	:content-transfer-encoding:in-reply-to:references:date
	:message-id:mime-version; s=default; bh=BjOQbNaO5t3+L+fEtaNz9sAf
	0tA=; b=guGr9GVsPW1cwFYQskG6Yp+IPaxiaG4Ga9lrhmYXb9WQi7kTKDAJiw5i
	HfYjxEFQnSKzAkTOCMeNW8cvWYCu5zP5+D5aNuCypN54YLKRfCj6vb6jDCxRf357
	TYN1NP3zAA4qdCqLBP/FdZffUmnKoiMRK0Ilv7gkRTx3gTmmUn8=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.2 required=5.0 tests=AWL,BAYES_20,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD,SPF_PASS autolearn=ham version=3.3.2 spammy=zsh, xerces9, H*i:sk:loom.20, HCc:D*cygwin.com
X-HELO: mailout.ish.de
X-Abuse-ID: hremUFXL0y-8240@umkbw.customer
From: Helmut Karlowski <helmut.karlowski@ish.de>
To: cygwin@cygwin.com
Cc: cygwin@cygwin.com
Subject: Re: cmp (or echo) bug?
Content-Type: text/plain; charset="iso-8859-1"
In-Reply-To: <loom.20151226T134911-504@post.gmane.org>
References: <loom.20151226T134911-504@post.gmane.org>
Date: Sun, 27 Dec 2015 18:23:38 +0100
Message-Id: <20151227182338.71448A10.helmut.karlowski@ish.de>
MIME-Version: 1.0
Outgoingd: 0.4.0_m1
X-IsSubscribed: yes
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id tBRHNkwS008149

---------------------------------------------------
> Hi,
> 
> David Balažic <xerces9 <at> gmail.com> writes:
> 
> > In Cygwin terminal (bash) I typed:
> > 
> > cmp  <(echo echo1)  <(echo echo2)
> 
> I suspect its a bash bug since it works fine with zsh (tested 64bit only).

zsh uses temp-files for process-substitution, while bash seems to use 
pipes which are not very good seekable. That might cause the 
difference. It only works in zsh and no other shell because of that.

Diff instead of cmp works also in bash btw.

-Helmut


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


