Skip to main content
The 2024 Developer Survey results are live! See the results

Timeline for Source a script from a URL in bash

Current License: CC BY-SA 3.0

6 events
when toggle format what by license comment
Jan 28, 2013 at 8:28 comment added kopischke This answer is missing the point of OP’s question, which stated clearly that a download and source sequence works, but is asking why sourcing the code via process substitution does not work. Also note OP intends to source the code (run it in the current shell context), not execute it as a script (which happens in a subshell).
Jan 26, 2013 at 11:39 comment added rich There is no error. It doesn't have to be executable to source it, nor does it have to be in the PATH.
Jan 26, 2013 at 10:55 comment added nohillside @nawi-at-mac The beauty of the <() construct is that you don't need to create a temporary file manually, so I understand why the asker wants to use it. But without additional information about the specific error/failure it will be difficult to answer the question.
Jan 26, 2013 at 10:07 comment added NaWi at Mac As long, as you don´t answer what you had done and what you like to do noone can answer this. Have you downloaded it ? Have you got an error from curl ? If you downloaded the script as described above, make it executable using chmode +x FILENAME and copy it somewhere in your PATH sudo mv FILENAME /usr/local/bin then you can run it in terminal. Or whatelse you mean ???
Jan 26, 2013 at 8:24 comment added rich I'm trying to source a downloaded script into my bash environment.
Jan 26, 2013 at 0:20 history answered NaWi at Mac CC BY-SA 3.0