> I am trying to exit spatch with a non-zero exit status when required
> changes have been found.

I got used to the interpretation that a zero exit status
should indicate a successful execution of the program.


>   @finalize:python@
>   @@
>   exit(cnt)
>
> where cnt is incremented by another Python rule everytime a required
> change is found.

I suggest to handle the desired search result counter
by an other data processing interface.
How would you like to treat program execution failures otherwise?

Regards,
Markus
_______________________________________________
Cocci mailing list
Cocci@systeme.lip6.fr
https://systeme.lip6.fr/mailman/listinfo/cocci

Reply via email to