Closed egor-tensin closed 10 months ago
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.
A curl call like
outputs the paste URL without a newline a-la
don't really see the downside of adding a newline. The workflow of
still works, since the shell strips the newline in command substitutions.