On Thu, Jan 24, 2002 at 06:00:36PM -0500, Earnie Boyd wrote:
> John Poltorak wrote:
> > 
> > Is there any way that autoconf can be used to handle cmp in test scripts?
> > 
> > Occasionally a test will fail because of the use of cmp to test
> > differences between generated data and expected results due to line
> > termination on DOS filesystems. If diff is used instead the test may
> > succeed.
> > 
> > What I'd like to see is some check to see if the use of cmp is valid and
> > if not then maybe set CMP=diff ...
> > 
> 
> What shell are you using on the DOS filesystem?  A properly ported cmp
> would be a better solution.

What relevance does the shell have?

"hello, world\n" is longer on a DOS filesystem than on Unix so cmp will 
distinguish between whereas diff won't.

 
> Earnie.


-- 
John



Reply via email to