Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 Aug 2005 05:22:57 +0300
From:      Giorgos Keramidas <keramida@ceid.upatras.gr>
To:        Xu Qiang <Qiang.Xu@fujixerox.com>
Cc:        dpk <dpk@dpk.net>, freebsd-questions@freebsd.org
Subject:   Re: Help on bash script?
Message-ID:  <20050812022257.GA45660@gothmog.gr>
In-Reply-To: <20050812021309.6F8FF1D93C@imss.sgp.fujixerox.com>
References:  <20050812021309.6F8FF1D93C@imss.sgp.fujixerox.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2005-08-12 10:16, Xu Qiang <Qiang.Xu@fujixerox.com> wrote:
> Btw, can we "export" a value in the sub-shell back to the parent?

Only through `backquote subtitution', as the child process cannot affect
the environment of the parent process.

	value=`shell command`
	value=$(shell command)




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050812022257.GA45660>