This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: cmp (or echo) bug?
- From: Helmut Karlowski <helmut dot karlowski at ish dot de>
- To: cygwin at cygwin dot com
- Cc: cygwin at cygwin dot com
- Date: Sun, 27 Dec 2015 18:23:38 +0100
- Subject: Re: cmp (or echo) bug?
- Authentication-results: sourceware.org; auth=none
- Outgoingd: 0.4.0_m1
- References: <loom dot 20151226T134911-504 at post dot gmane dot 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