Changes

Jump to navigation Jump to search
42 bytes added ,  21:27, 22 September 2009
Line 15: Line 15:  
* However, environment variables (such as $HOME, $MAIL etc) are passed to subshell.  
 
* However, environment variables (such as $HOME, $MAIL etc) are passed to subshell.  
 
==Use exec command to avoid subshell==
 
==Use exec command to avoid subshell==
You can use the [[exec command]] to avoid subshell. The exec command replaces this shell with the specified program. For example,
+
You can use the [[exec command]] to avoid subshell. The exec command replaces this shell with the specified program without swapping a new subshell or proces. For example,
 
<source lang="bash">exec command
 
<source lang="bash">exec command
 
# redirect the shells stderr to null
 
# redirect the shells stderr to null

Navigation menu