when typing 'curl' in mac bash,the result is mixed with the next command line. the model which i want is like the second pic.
when typing 'curl' in mac bash,the result is mixed with the next command line. the model which i want is like the second pic.
Your document you got from the web does not end cleanly with a newline, so when the program 'curl' exits, your shell wakes up and prints starting where the cursor is, which means it looks like you have a mixed-up output. You don't.
You can do two things on that "curl" line to get the next shell prompt off on its own.
curl http://localhost/hello; echo