Hi, I’m working on a cross-platform library to get environment information.
It has a function to get product name and its version of running OS (e.g. “Ubuntu 20.04.6 LTS”.)
On Haiku, it returns “Haiku R1/beta4” using the method from the AboutSystem app.
Now, I want another way to get “R1/beta4” to generate a test case for the function.
Is there any command to do it?
I use WMI commands on windows, sw_vers
on mac, and /etc/os-release
on Linux.
BSD can use uname
, and Solaris has /etc/release
.
But on Haiku, I can’t find any commands to do it…