scripting:newbie_traps

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
scripting:newbie_traps [2019/08/30 09:20]
ersen [Reacting to exit codes]
scripting:newbie_traps [2020/05/28 12:34] (current)
fgrose [Exporting] clarify English
Line 155: Line 155:
 ==== Exporting ==== ==== Exporting ====
  
-Exporting a variable means to give **newly created** (child-)processes a copy of that variable. **not** copy a variable created in a child process to the parent process. The following example does **not** work, since the variable ''​hello''​ is set in a child process (the process you execute to start that script ''​./​script.sh''​):​+Exporting a variable means giving ​**newly created** (child-)processes a copy of that variable. ​ It does **not** copy a variable created in a child process ​back to the parent process. The following example does **not** work, since the variable ''​hello''​ is set in a child process (the process you execute to start that script ''​./​script.sh''​):​
  
 <​code>​ <​code>​
  • scripting/newbie_traps.1567156819.txt
  • Last modified: 2019/08/30 09:20
  • by ersen