[Bro-Dev] Script reorg proposal

Matthias Vallentin vallentin at icir.org
Tue Aug 2 07:04:15 PDT 2011

> I don't think intentional script overshadowing is a use-case that will
> work as nicely as you want it to if, after the reorganization, most
> scripts are still as part of a script "package" and referred to
> internally by a relative path.  e.g. the "base/foo/" package might
> have a "base/foo/bar.bro" script that's loaded internally via its
> "__load__.bro" that does "@load ./bar".  That means you should never
> be able to overshadow that bar.bro.

Sorry, I'm not sure if I get it. Are you saying that the "@load ./bar"
directive in __load__.bro is problematic, because, if we search in $HOME
before the current directory, the wrong bar.bro (in the users home
directory) is picked rather than the one in base/foo?


More information about the bro-dev mailing list