Well, not exactly ...
culler@abner ~ % export SYSTEM_VERSION_COMPAT=1
culler@abner ~ % sw_vers
ProductName: Mac OS X
ProductVersion: 10.16
BuildVersion: 20G224
culler@abner ~ % export SYSTEM_VERSION_COMPAT=0
culler@abner ~ % sw_vers
ProductName: macOS
ProductVersion: 11.6.1
BuildVersion: 20G224
But that would only be helpful to me if the operatingSystemVersion
property of an NSProcessInfo object also depended on that environment
variable. Feel free to check the docs for an answer to that question:
https://developer.apple.com/documentation/foundation/nsprocessinfo/1410906-operatingsystemversion |