What you have observed is correct - and yes its odd you'd think (if it
was a normal programming language) that the "scope" of the definitions
in the imported file was just within that imported file and its own
children. But actually it extends to files that are imported later.

What happens I guess is CFEngine imports one file and then the second
one and only they starts parsing them: so the scope of your definitions
extends over both files.  So the documentation is exactly true: it isnt
carried "back up" to the parent ..... what it doesnt make clear is that
it is available in files import after ;)

_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to