I am attempting to use GRC's SQRL client in Wine, using this shell script to launch it. I have a couple helper scripts that I source, in order to reduce code duplication. An example of one such statement is:source winesrc grc-sqrlThe sourced script, here named winesrc, is in the same folder as my launcher script.When I call my script directly and pass a URL as an argument, as in:grc-sqrl sqrl://www.grc.com/sqrl?nut=1234567890abcdefghijkl... it works fine. The problem comes when I try to set Firefox (technically Iceweasel) to open the link. In about:config I set network.protocol-handler.expose.sqrl to false. I then clicked an SQRL link, and in the dialog that opened, selected my script.However, whenever I clicked a SQRL link after that, nothing happened. After some trial-and-error, I managed to narrow down the problem to my source statements. If I remove those (and copy the relevant pieces of code directly into my script), it works fine. I also tried changing the source statements to ., but that didn't help either.Why can't Firefox handle source statements in the shell scripts it launches?
Why can't Firefox open a link with a shell script that uses `source`?
shell script;firefox