[conspire] cannot execute binary file

Rick Moen rick at linuxmafia.com
Thu Sep 1 00:45:44 PDT 2016


Quoting Paul Zander (paulz at ieee.org):

> Wonder where I got the idea for the extra "."  Maybe it's just because
> I haven't used CLI very much of late.

Sourcing a _script_ using either the '.' shell builtin or equivalently
the 'source' shell builtin, thus '. shellscript.sh' or 'source
shellscript.sh' runs it within the current shell.  Sourcing is intended
for running of shell scripts _only_.  All commands are run in the
current shell and changes to the environment take effect in the current
shell.

By contrast, _executing_ a script by doing ./shellscript.sh spawns a new
shell to run the script.  The script is running in the new shell and all
changes to the environment take effect in the new shell. After the
script is done the new shell is destroyed. All changes to the shell
environment in the new shell are destroyed with the new shell.  Only the
output text is printed in the current shell.





More information about the conspire mailing list