This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: cmp (or echo) bug?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]