1

Series of question on ebuild scripting. Given original passage from revdel & questions

view story
linux-howto

http://unix.stackexchange.com – Scope Whenever an ebuild is sourced, the functions and variables within it are loaded into memory by the script interpreter. However, only variables and instructions that are not part of a function are interpreted - functions such as src_compile() are only executed by Portage when the ebuild has reached the compile stage. The code within these functions are considered in "local scope" while everything outside of the functions is in the "global scope" meaning they are executed every time the ebuild is sourced. An external application (such as grep, sed or awk) should never be called in globa (HowTos)