Add gnu readline to interactive.
lex replace, and using previous condition in setting condition.