It seems like when I curl
an HTTP request, sometimes I get a newline and other times I do not.
In my shell, I use the -w "\n"
option to append a newline, but using that also makes me wonder if there's a way to add the newline only when the response does not end with one.
In my shell, it sometimes breaks cycling back through history and the reverse search if the response does not have a newline.