Subject: Re: expr "foo" : '/'
From: David Laight <email@example.com>
Date: 02/06/2002 17:52:07
"Nathan J. Williams" wrote:
> Andrew Cagney <firstname.lastname@example.org> 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