[Bug 50132] Command line: Incorrect behaviors in FOR () and IF () blocks