On Thu, 20 Nov 2014 01:26:30 -0800 (PST) tentaculartentacle <
fred.o...@gmail.com> wrote:
t> vars:
t> "myappversion" string => execresult("/opt/myapp/bin/runme
t> --version","noshell");
t> classes:
t> "myapp_compliant" expression => strcmp("$(myappversion)","1.2.3-fix5");
t> "myapp_fixable" expression => strcmp("$(myappversion)","1.2.3-.*");
# no need to quote var
"myapp_fixable" expression => regcmp($(myappversion), "1.2.3-.*");
t> "myapp_unfixable" should be defined if !myapp_compliant AND !myapp_fixable
# no need to quote var
"myapp_unfixable" not => regcmp($(myappversion), "1.2.3-.*");
If you did `myapp_unfixable` as `!myapp_compliant AND !myapp_fixable` then it could get
defined in an intermediate pass because the `execresult` hasn't been
evaluated. So it's better to define it only based on the contents of
the `execresult`.
Ted