[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: environment question
From:       Mike Frysinger <vapier () gentoo ! org>
Date:       2009-10-31 20:59:48
Message-ID: 200910311659.48647.vapier () gentoo ! org
[Download RAW message or body]

[Attachment #2 (multipart/signed)]


On Saturday 31 October 2009 16:26:44 Allan Clark wrote:
> On Sat, Oct 31, 2009 at 19:55, Mike Frysinger wrote:
> > On Saturday 31 October 2009 11:00:02 Christopher Barry wrote:
> > > Probably an over-asked question.
> > > Q: I start udhcpc from scriptA. udhcpc runs scriptB on a bound event.
> > > Will scriptB see the environment of scriptA, i.e. can I access
> > > functions defined in scriptA from scriptB, or would I need to re-source
> > > these into scriptB?
> >
> > the environment of one process cannot be changed by any other process
> > (ignoring invasive hacks that can do this), and environments are
> > inherited from their parent.
> >
> > further, functions are not exported via the environment (ignoring the
> > non- standard and disabled-by-default extensions that bash provides).
> 
> Which sounds like "yes, you'd have to re-source these functions"

teach a man to fish ...
-mike

["signature.asc" (application/pgp-signature)]

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic