Closed zitryss closed 10 years ago
Ah, a tricky one: http://pubs.opengroup.org/onlinepubs/7908799/xcu/awk.html
"There is a lexical ambiguity between the token ERE and the tokens "/" and DIV_ASSIGN. When an input sequence begins with a slash character in any syntactic context where the token "/" or DIV_ASSIGN could appear as the next token in a valid program, the longer of those two tokens that can be recognised will be recognised. In any other syntactic context where the token ERE could appear as the next token in a valid program, the token ERE will be recognised."