public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Helmut Karlowski <helmut.karlowski@ish.de>
To: cygwin@cygwin.com
Cc: cygwin@cygwin.com
Subject: Re: cmp (or echo) bug?
Date: Sun, 27 Dec 2015 17:23:00 -0000	[thread overview]
Message-ID: <20151227182338.71448A10.helmut.karlowski@ish.de> (raw)
In-Reply-To: <loom.20151226T134911-504@post.gmane.org>

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

  reply	other threads:[~2015-12-27 17:23 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-25 21:32 David Balažic
2015-12-26  6:42 ` Marco Atzeri
2015-12-26 12:49 ` Ismail Donmez
2015-12-27 17:23   ` Helmut Karlowski [this message]
2015-12-28 17:08   ` David Balažic
2015-12-28 18:20     ` Michael Enright
2015-12-28 20:58       ` David Balažic
2015-12-29  4:50         ` Andrey Repin
2015-12-29 16:43 ` Houder
2016-01-03 17:21   ` David Balažic

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20151227182338.71448A10.helmut.karlowski@ish.de \
    --to=helmut.karlowski@ish.de \
    --cc=cygwin@cygwin.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).