Skip to content

Conversation

@egor-tensin
Copy link
Contributor

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

    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.
@w4 w4 merged commit f3ef493 into w4:master Dec 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants