Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
In plaintext mode, end with a newline
A curl call like curl -X PUT --data-binary @data.txt https://host/ outputs the paste URL without a newline a-la https://host/somepastenamewhich can mess up the terminal prompt. I don't really see the downside of adding a newline. The workflow of url="$( curl -X PUT --data-binary @data.txt https://host/ )" curl "$url" still works, since the shell strips the newline in command substitutions.
- Loading branch information