syntax error in bashrc script #377

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

Originally created by @kevjonesin on GitHub.

Both the transfer.sh script at gist and the two line .bashrc version in 'sample use cases' return ...

syntax error near unexpected token `('

... when running in bash via Manjaro Linux.

In the case of calling the script from my bashrc I get ...

[kevjo@manjaro ~]$ transfer test-transfer.txt

bash: /home/kevjo/Software/Scripts/transfer.sh: line 14: syntax error near unexpected token `('

bash: /home/kevjo/Software/Scripts/transfer.sh: line 14: `transfer() { '

... Inserting the two line snippet version directly in .bashrc results in similar, but with an error line number relevant to location in the bashrc file itself.

Might something be missing from within or preceding the round brackets at "transfer()" perhaps?

Originally created by @kevjonesin on GitHub. Both the transfer.sh script [at gist](https://gist.github.com/nl5887/a511f172d3fb3cd0e42d) and the two line .bashrc version [in 'sample use cases'](https://transfer.sh/) return ... > syntax error near unexpected token `(' ... when running in bash via Manjaro Linux. In the case of calling the script from my bashrc I get ... > [kevjo@manjaro ~]$ transfer test-transfer.txt > > bash: /home/kevjo/Software/Scripts/transfer.sh: line 14: syntax error near unexpected token `(' > > bash: /home/kevjo/Software/Scripts/transfer.sh: line 14: `transfer() { ' ... Inserting the two line snippet version directly in .bashrc results in similar, but with an error line number relevant to location in the bashrc file itself. Might something be missing from within or preceding the round brackets at "transfer()" perhaps?
Author
Owner

@pepa65 commented on GitHub:

This is a fish file, not for bash/zsh.

@pepa65 commented on GitHub: This is a ``fish`` file, not for bash/zsh.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#377