[PLUG] sourcing vs. running in a sub-shell

Bryan Murdock bmurdock at gmail.com
Fri Jan 7 19:45:24 UTC 2005


On Fri, 7 Jan 2005 09:06:09 -0800 (PST), Rich Shepard
<rshepard at appl-ecosys.com> wrote:
>    While I'm still trying to grok the rationale for sourcing vs. running in a
> subshell during boot,

You source a script when you want it to modify your current shell
and/or environment, for example, setting an environment variable,
set-ing or unset-ing shell options, or adding aliases or functions.  A
script that tries to do any of those for you in a sub-shell that goes
away once the script exits won't be much help to you.

Bryan



More information about the PLUG mailing list