I've found the use of script() very useful for creating a log of output from a shell script, but it's annoying to have every line of output suffixed with a ^M line ending. Is there any way of preventing this?
I know that
I know that
dos2unix
(converters/unix2dos) will get rid of them, but is there an automatic way of tidying up typescript?