[m-rev.] diff: fix string_format test problems under cygwin

Fergus Henderson fjh at cs.mu.OZ.AU
Thu Dec 5 15:25:18 AEDT 2002


On 02-Nov-2002, Peter Ross <pro at missioncriticalit.com> wrote:
> Fix a problem with the tests on a text mount under cygwin.  For some
> unknown reason, the .sorted_out file produced contains ^M's when using
> mmake.  They don't occur when creating the output from the shell prompt.

> @@ -76,7 +76,7 @@
>  	@echo "Comparing $*.sorted_out with $*.exp*,"
>  	@echo "	results in $@"
>  	@-rm -f $@ $*.res[1-5]
> -	@cat $*.out | sort > $*.sorted_out
> +	@cat $*.out | sort | sed -e 's/
$$//g' > $*.sorted_out

Could you try

	@sort < $*.out > $*.sorted_out

and/or

	@sort $*.out > $*.sorted_out

and see if either of those avoids the need for the `sed' command?
These are better anyway, since they avoid an unnecessary `cat' process.

-- 
Fergus Henderson <fjh at cs.mu.oz.au>  |  "I have always known that the pursuit
The University of Melbourne         |  of excellence is a lethal habit"
WWW: <http://www.cs.mu.oz.au/~fjh>  |     -- the last words of T. S. Garp.
--------------------------------------------------------------------------
mercury-reviews mailing list
post:  mercury-reviews at cs.mu.oz.au
administrative address: owner-mercury-reviews at cs.mu.oz.au
unsubscribe: Address: mercury-reviews-request at cs.mu.oz.au Message: unsubscribe
subscribe:   Address: mercury-reviews-request at cs.mu.oz.au Message: subscribe
--------------------------------------------------------------------------



More information about the reviews mailing list