Change code to support -e like other terminal.