I was using the wrong expr originally. When I switched to the right expr,
though, the changes I made still worked. That's probably because GNU expr
will ignore needless escaping as if there was no escaping there in the
first place. I didn't try undoing my local changes after switching to GNU
expr to see if the original still works, but I expect it will.
Sorry for the confusion.
On Mon, 28 Feb 2000, Larry Jones wrote:
> Date: Mon, 28 Feb 2000 12:02:28 -0500 (EST)
> From: Larry Jones <[EMAIL PROTECTED]>
> To: [EMAIL PROTECTED]
> Cc: [EMAIL PROTECTED], [EMAIL PROTECTED]
> Subject: Re: make check on Solaris 2.6
>
> [EMAIL PROTECTED] writes:
> >
> > >Description:
> > make check (sanity.sh) fails on several of the rcsdiff tests starting with
> > rcsdiff-5
> >
> > The problem is due to improperly escaped $ characters in the calls to
> > dotest. The following is a diff from the original sanity.sh to my
> > modified version that passes all tests.
>
> The $ is *not* improperly escaped -- $ is only special at the end of a
> regular expression, not in the middle.
>
> Which expr are you using? Did you get any messages from "make check"
> noting that the default expr was deficient? Note that neither of Sun's
> exprs are capable of running the test suite correctly, although they
> both seem to handle this case correctly:
>
> sunes5-> /usr/bin/expr "a\$b" : "a\$b"
> 3
> sunes5-> /usr/xpg4/bin/expr "a\$b" : "a\$b"
> 3
>
> They don't handle large patterns, however.
>
> -Larry Jones
>
> What better way to spend one's freedom than eating chocolate
> cereal and watching cartoons! -- Calvin
>
Mike MacKenzie
[EMAIL PROTECTED]
:: ::
:: I phileo <>< ::
:: ::