bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to do? Possible?


From: DJ Mills
Subject: Re: How to do? Possible?
Date: Mon, 25 Jul 2011 13:37:22 -0400

>        Because a subshell cannot access the global variables of the
> parent.
>

A subshell can access its parent's variables.  foo=bar; ( echo "$foo" )

A sub process cannot, unless the variables are exported.  It does not sound like
you need to do so here.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]