Closed t0nik0 closed 3 years ago
The problem you described is not a fault of the pastebin itself but the way cURL works.
This creates the multiline output which curl handles as "Helloworld" and passes it in that form to pastebin service:
$ echo -e 'Hello\nworld'
Hello
world
If for instance, you decide to use httpie (https://httpie.io/):
$ echo -e 'Hello\nworld' | http -p b http://localhost:8000
http://localhost:8000/XOzLQ9ehSiMz-OZmCSPyp
$ curl "http://localhost:8000/raw/WLoItLb9Zqllwr9nj3uFR"
Hello
world
then the multiline gets converted to "Hello\nworld\n" and shipped to pastebin service
or just cut the text if '\r' has been used: