4 ms·how do you get rid of the carriage return as last char that way?by ibotty 14y agohow do you get rid of the carriage return as last char that way?sjs 14y agoUse Ctrl-d to end input without hitting return and you shouldn't get a newline.Peaker 14y agobash, at least, only handles Ctrl-d on its own line.1zq 14y agoIf you're not on a new line, you can type Ctrl-d twice.