catch infinite substitution for the following cases: echo hi | sed 's/$/a/g' (prints hia) echo hi | sed 's/h*/x/g' (terminates with error: infinite substitution)
Added a regresssion test, compile.c.test