expr(1) misfeature

utzoo!henry utzoo!henry
Tue Apr 13 20:06:33 AEST 1982


Expr's : operator (pattern match), unlike every other pattern-matching
facility in Unix, insists on matching the WHOLE string or failing.  This
inconsistency trips up everyone who tries to use the @#$% thing for the
first time.  There is no reason for it;  expr could use the ^$ convention
for anchored matching the same way awk does.  Is there some reason for
this botch?



More information about the Net.bugs.v7 mailing list