Transfer bashrc enable interpretation of backslash escapes #354

Closed
opened 2026-01-19 18:30:00 +00:00 by michael · 1 comment
Owner

Originally created by @gelim on GitHub.

In the bashrc snippet you display here : https://github.com/dutchcoders/transfer.sh/blob/master/transfersh-web/index.html#L153

You probably want to enable interpretation of backslash by changing echo to echo -e
That would allow to have a properly formatted error messages when no argument is passed to the function.

At the moment it looks like this:

$ transfer 
No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md

Cheers,
Mathieu

Originally created by @gelim on GitHub. In the bashrc snippet you display here : https://github.com/dutchcoders/transfer.sh/blob/master/transfersh-web/index.html#L153 You probably want to enable interpretation of backslash by changing `echo` to `echo -e` That would allow to have a properly formatted error messages when no argument is passed to the function. At the moment it looks like this: ``` $ transfer No arguments specified. Usage:\necho transfer /tmp/test.md\ncat /tmp/test.md | transfer test.md ``` Cheers, Mathieu
Author
Owner

@nl5887 commented on GitHub:

Fixed! thx.

@nl5887 commented on GitHub: Fixed! thx.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#354