Print new line in transfer.sh #188

Closed
opened 2026-01-19 18:29:20 +00:00 by michael · 6 comments
Owner

Originally created by @soulofmischief on GitHub.

The minified script offered on https://transfer.sh should have printf "\n"; appended to the end of the function, so that the next bash prompt is on a new line and not the same line as the returned URL.

Originally created by @soulofmischief on GitHub. The minified script offered on https://transfer.sh should have `printf "\n";` appended to the end of the function, so that the next bash prompt is on a new line and not the same line as the returned URL.
Author
Owner

@soulofmischief commented on GitHub:

@aspacca https://github.com/dutchcoders/transfer.sh-web/pull/35

@soulofmischief commented on GitHub: @aspacca https://github.com/dutchcoders/transfer.sh-web/pull/35
Author
Owner

@paolafrancesca commented on GitHub:

@soulofmischief can you please refer to the file and line of code that has to be changed from the frontend repo: https://github.com/dutchcoders/transfer.sh-web/tree/master/src?

I guess it is somewhere here: https://github.com/dutchcoders/transfer.sh-web/blob/master/src/index.html

@paolafrancesca commented on GitHub: @soulofmischief can you please refer to the file and line of code that has to be changed from the frontend repo: https://github.com/dutchcoders/transfer.sh-web/tree/master/src? I guess it is somewhere here: https://github.com/dutchcoders/transfer.sh-web/blob/master/src/index.html
Author
Owner

@stefanbenten commented on GitHub:

@JustAnotherArchivist Did you see the example alias/function for the linux terminal? That would essentially be what you want for manual usage. Please correct me if there is any other manual way that wouldnt work with that?

@stefanbenten commented on GitHub: @JustAnotherArchivist Did you see the example alias/function for the linux terminal? That would essentially be what you want for manual usage. Please correct me if there is any other manual way that wouldnt work with that?
Author
Owner

@stefanbenten commented on GitHub:

We could simply handle this with an additional header.
The usages that i know of, prefer the current version, for ease of automation.

@stefanbenten commented on GitHub: We could simply handle this with an additional header. The usages that i know of, prefer the current version, for ease of automation.
Author
Owner

@JustAnotherArchivist commented on GitHub:

This would certainly be useful for manual terminal usage with e.g. curl. I've long had a little script that essentially does curl --upload-file ...; echo for this reason. However, the lack of a newline is great for automation as you'd otherwise have to strip it again to get the actual URL.

@JustAnotherArchivist commented on GitHub: This would certainly be useful for manual terminal usage with e.g. curl. I've long had a little script that essentially does `curl --upload-file ...; echo` for this reason. However, the lack of a newline is great for automation as you'd otherwise have to strip it again to get the actual URL.
Author
Owner

@JustAnotherArchivist commented on GitHub:

@stefanbenten Yeah, I'm aware of that. I originally wrote my script to work around percent-encoding bugs (#213 and #215) and still use it to sed 's,%40,@,g' because I prefer having the at sign in unencoded form. It also prints the deletion URL to stderr whereas it's normally silently swallowed.

@JustAnotherArchivist commented on GitHub: @stefanbenten Yeah, I'm aware of that. I originally wrote my script to work around percent-encoding bugs (#213 and #215) and still use it to `sed 's,%40,@,g'` because I prefer having the at sign in unencoded form. It also prints the deletion URL to stderr whereas it's normally silently swallowed.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#188