The -CURRENT /bin/expr command may get confused when matching regexps
against strings that begin with "-", because they are interpreted as
command flags.
Using "--" as the first flag solves this, but it will in turn confuse
-STABLE expr (syntax error), so it looks like there's no common way to do
it (that I can think of).