On 14/01/2022 16:01, Kohei Yoshida wrote:
Hi Chris,
On 13.01.2022 20:14, Chris Sherlock wrote:
I would prefer the string to be in the format:
Fedora 17 (Beefy Miracle) Kernel: 5.xxx (whatever it might be)
This is close to what is returned for the Mac and Windows versions.
To me that's a very reasonable format of choice.
Though, maybe we could add the word "Linux" somewhere just in case
someone may use this to try to detect Linux platform independent of
distros?
Just find some reasonable set of uname flags. uname by itself is pretty
worthless (my system just returns "Linux"). -osrv seems a reasonable set...
anthony@thewolery /usr/qmsys/terminfo/p $ uname -a
Linux thewolery 5.10.76-gentoo-r1 #1 SMP Sun Nov 14 17:30:04 GMT 2021
x86_64 AMD Ryzen 3 1300X Quad-Core Processor AuthenticAMD GNU/Linux
anthony@thewolery /usr/qmsys/terminfo/p $ uname
Linux
anthony@thewolery /usr/qmsys/terminfo/p $ uname -osrv
Linux 5.10.76-gentoo-r1 #1 SMP Sun Nov 14 17:30:04 GMT 2021 GNU/Linux
Cheers,
Wol