Date: Fri, 12 Aug 2005 10:16:43 +0800 From: Xu Qiang <Qiang.Xu@fujixerox.com> To: dpk <dpk@dpk.net>, Xu Qiang <Qiang.Xu@fujixerox.com> Cc: freebsd-questions@freebsd.org Subject: RE: Help on bash script? Message-ID: <20050812021309.6F8FF1D93C@imss.sgp.fujixerox.com>
next in thread | raw e-mail | index | archive | help
dpk wrote: > On Fri, 12 Aug 2005, Xu Qiang wrote: > As soon as you used the pipe, to the while, you entered a sub-shell. > There's no way (that I'm aware of anyways) to get the sub-shell's > variables sent back up to the parent. Thanks for your detailed analysis and a solution. Yes, I didn't notice the = pipe's effect. = Btw, can we "export" a value in the sub-shell back to the parent? thanks, Xu Qiang
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050812021309.6F8FF1D93C>