delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2009/10/26/16:36:43

X-Recipient: archive-cygwin AT delorie DOT com
X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: RE: How to increase the memory available to diff in cygwin 1.7?
Date: Mon, 26 Oct 2009 17:36:31 -0400
Message-ID: <2175F853309F0C4F924EB2F995C38EED015ACD11@chipmail.chipwrights.com>
In-Reply-To: <0105D5C1E0353146B1B222348B0411A20886DC6D7B@NIHMLBX02.nih.gov>
References: <bb237ab80910260841te5fab0di2bb4f3c4f40ce4dd AT mail DOT gmail DOT com> <20091026172622 DOT GB790 AT ednor DOT casa DOT cgf DOT cx> <bb237ab80910261129l30b9eb84v8b568d209c2a919c AT mail DOT gmail DOT com> <0105D5C1E0353146B1B222348B0411A20886DC6D7B AT NIHMLBX02 DOT nih DOT gov>
From: "Don Porges" <dporges AT chipwrights DOT com>
To: <cygwin AT cygwin DOT com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT 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

-----Original Message-----
From: cygwin-owner AT cygwin DOT com [mailto:cygwin-owner AT cygwin DOT com] On Behalf
Of Buchbinder, Barry (NIH/NIAID) [E]
Sent: Monday, October 26, 2009 2:49 PM
To: cygwin AT cygwin DOT com; Kenneth Chiu
Subject: RE: How to increase the memory available to diff in cygwin 1.7?

Kenneth Chiu sent the following at Monday, October 26, 2009 2:29 PM
>
>Considering that I only want to know whether or not two files differ,=20
>this should not require any significant memory usage. (In other words,=20
>don't use mmap().)

If you only want to know whether or not they are identical, use cmp.

- Barry

"Get the right tool for the right job."

---------------------------

According to his original post, Kenneth was using

$ diff -rq B B2 >diff.out

The -q is the "just tell me if they're the same" option; given that it
exists at all, it is a little odd that it doesn't do the equivalent of a
cmp.

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