Add heuristic to shut off P (prompt) in ed.

Strip off trailing CR's or CR-LF --> LF

Add >> << %
