[Bro] Upgrade from 2.4 to 2.5

Jon Siwek jsiwek at corelight.com
Thu Apr 19 08:09:05 PDT 2018



On 4/19/18 12:06 AM, Jim Mellander wrote:
> I ran across this issue just the other day.  Evidently, ?$ no longer 
> works in a ternary expression, which I presume is a bug, rather than a 
> feature.

This test case at least still works as expected in git/master:

```bro
type myrec: record { a: string &optional; };
local mr1 = myrec($a = "aaa");
local mr2 = myrec();
print mr1?$a ? "yes" : "no";
print mr2?$a ? "yes" : "no";
```

Can you give more details on exactly what you see or file a bug report 
if you've found a situation where the ?$ or ternary expressions aren't 
working?

- Jon


More information about the Bro mailing list