Subject: Re: expr "foo" : '/'
To: <>
From: David Laight <david@l8s.co.uk>
List: current-users
Date: 02/06/2002 17:52:07
"Nathan J. Williams" wrote:
> 
> Andrew Cagney <cagney@mac.com> writes:
> 
> > This is one for the POSIX police.  Is:
> >
> >       $ expr "foo" : '/'
> >       expr: syntax error
> >
> > correct?

Dunno - is probably valid behaviour since it is the traditional one, I
doubt it is the required one though - but it might be!

Solaris 8 barfs 'expr / : x' and 'expr x : /' the former could happen if
users type horrid input into some scripts.

I'm sure I've had 'test' explode for similar reasons - but maybe it was
expr.

	David