Changed behavior of semicolon at the end of a line or a parenthesis and changed example shell to match changes