If I unintentionally add a newline in a command, as far as I can tell, the only way to undo it is to press Ctrl+c and type the command again. For example:
$ cat 'John's File' > ^C $ cat "John's File"
This is annoying if the original command is long.
Is there a way to delete the newline and remove the
> prompt so that I can go back to the original command?