Issue 1: If the "!" operator was not used in the `test` applets argument, `int not` was never initialized before using it in `toys.exitval ^= not`, According to a quick search the behavior of `not` is then undefined, which could lead to inconsistent results (e.g. unexpected result inversion).
Issue 2: The ! operator was being ignored if we return early due to the target not existing. Matthias (first patch via mailing list, am I doing it right?)
0001-Fix-test-applet-randomly-applying-operator.patch
Description: Binary data
0002-Fix-test-applet-NOT-operator.patch
Description: Binary data
_______________________________________________ Toybox mailing list Toybox@lists.landley.net http://lists.landley.net/listinfo.cgi/toybox-landley.net