[m-rev.] diff: fix tr portability bug

Simon Taylor stayl at cs.mu.OZ.AU
Tue May 7 18:39:28 AEST 2002


On 07-May-2002, Fergus Henderson <fjh at cs.mu.OZ.AU> wrote:
> Estimated hours taken: 0.75
> Branches: main
> 
> configure.in:
> 	Change "tr a-z A-Z" to "tr '[a-z]' '[A-Z]'".  The former is
> 	Posix-conforming, but doesn't work on some non-Posix-conforming
> 	systems, in particular Solaris.  The latter works on both Solaris
> 	and on Posix-conforming systems.

It might be better to spell it out:
`tr abcdefghijklmnopqrstuvwxyz ABCDEFGHIJKLMNOPQRSTUVWXYZ'.
For example /usr/xpg4/bin/tr on taifun doesn't support
character ranges properly.

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