Commit f3ef493
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.1 parent 6e29e25 commit f3ef493
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
112 | 112 | | |
113 | 113 | | |
114 | 114 | | |
115 | | - | |
| 115 | + | |
116 | 116 | | |
117 | | - | |
| 117 | + | |
118 | 118 | | |
119 | 119 | | |
120 | 120 | | |
| |||
0 commit comments