Commands with lots of arguments sometimes use slash escaped newlines to make them easier to read on the web. Here is a silly example
echo -n \
"hello" \
"world"
I'm not sure how to paste and edit this "properly"
Pasted into bash you get
$ echo -n \
> "hello" \
> "world"
Now if I navigate with the back arrow key on OSX, I can only edit the line with > "world"
, not the first two lines. Usually I have to paste into a temp file to fix up a command.
Is there a better way to perform this paste which allows editing any line? bash
setting which makes this work in a nicer way?