delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/12/27/12:23:52

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: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 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.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 AT umkbw DOT customer
From: Helmut Karlowski <helmut DOT karlowski AT ish DOT de>
To: cygwin AT cygwin DOT com
Cc: cygwin AT cygwin DOT com
Subject: Re: cmp (or echo) bug?
In-Reply-To: <loom.20151226T134911-504@post.gmane.org>
References: <loom DOT 20151226T134911-504 AT post DOT gmane DOT 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
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


- Raw text -


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