Mark Wooding [off-list ref] writes:
From: Mark Wooding <redacted>
Some words, e.g., `match', are special to expr(1), and cause strange
parsing effects. Track down all uses of expr and mangle the arguments
so that this isn't a problem.
Gaaaaaaaaaah.
http://www.opengroup.org/onlinepubs/009695399/utilities/expr.html
says use of length, substr, index, match as string arguments
produces unspecified results, so obviously the program was
wrong.
Thanks.