John Poltorak wrote: > > 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? >
Worlds of difference. A properly ported shell might eliminate the concern for a properly ported cmp. Are you talking strictly MSDOS or are you talking COMMAND.COM/CMD.EXE or are you talking UWIN or are you talking CYGWIN or are you talking ... > "hello, world\n" is longer on a DOS filesystem than on Unix so cmp will > distinguish between whereas diff won't. > No it isn't. "hello, world\n" is the same size in both worlds. "hello, world\r\n" is the same size in both worlds. A properly ported cmp would be a better method. You're problem isn't an autoconf problem, it's a tool problem. Earnie. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com
