Changes

Jump to navigation Jump to search
261 bytes added ,  20:54, 22 September 2009
no edit summary
Line 1: Line 1:  +
 +
==Exporting Functions and Variables==
 +
A subshell does not inherit a variable's setting. Use the [[export command]] to export variables and functions to subshell:
 +
<source>WWWJAIL=/apache.jail
 +
export $WWWJAIL
 +
die() { echo "$@"; exit 2; }
 +
export -f die</source>
 
[[Category:Catching signals]][[Category:Commands]]
 
[[Category:Catching signals]][[Category:Commands]]

Navigation menu