export variable inheritance question

Scott James Remnant scott at netsplit.com
Sat Oct 3 00:14:02 BST 2009

On Fri, 2009-10-02 at 15:41 -0700, Garrett Cooper wrote:

> We recently ran into a slightly unexpected side-effect where we
> exported a variable in a jobfile, like so:
> # job1
> env VAR=1
> export VAR
> # job2
> start on job1
>     And $VAR was visible from job2 with the value set in job1 (in this
> case $VAR => 1). Is that intended behavior?
That's what export does.  It places the value of the named environment
variables into the event environment.

What were you using it for? :)

Have you ever, ever felt like this?
Had strange things happen?  Are you going round the twist?
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/upstart-devel/attachments/20091003/4e84bd12/attachment.pgp 

More information about the upstart-devel mailing list