| Starting with macOS 13, Apple can use a "Rapid Security Response" process to push small system updates out. When one of these is applied, a new ProductVersionExtra field is output from the sw_vers command:
$ sw_vers |
ProductName: macOS |
ProductVersion: 13.3.1 |
ProductVersionExtra: (a) |
BuildVersion: 22E772610a
|
If no Rapid Security Response update is installed, the ProductVersionExtra field does not appear:
$ sw_vers |
ProductName: macOS |
ProductVersion: 13.4 |
BuildVersion: 22F5049e
|
The os.macosx.productversion fact should report this. Currently it only reports full, major, minor, and patch fields. Adding an additional extra field for macOS 13 and later should suffice. |