snips.sh
snips.sh copied to clipboard
Extra `CR` when getting file over SSH
What happened? What is expected?
I put a file into snips.sh that had a single line with a \n character at the end (no \r).
On another system, I retrieved the file using ssh.
I compared the sha256 of the source and the retrieved file and they were not the same.
snips.sh seems to have added a \r before the \n. :(
I expect snips.sh not to change my files in any way whatsoever.
How can we reproduce it?
root@staging:/# echo 'hi' | od -a 0000000 h i nl 0000003
root@staging:/# echo 'hi' | ssh snips.sh
Pseudo-terminal will not be allocated because stdin is not a terminal.
┃ File Uploaded 📤
┃ id: qbH7FNuWG8
┃ size: 3 B • type: plaintext • visibility: public
┃ SSH 📠
┃ ssh f:[email protected]
┃ URL 🔗
┃ https://snips.sh/f/qbH7FNuWG8
root@staging:/# ssh f:[email protected] | od -a Connection to snips.sh closed. 0000000 h i cr nl 0000004
Anything else we need to know?
no