Request: reliable OS detection

#1

Anyone have a good recipe for detecting all the major OSes that Kakoune could be running on?

#2

Given that Kakoune requires a POSIX environment, does this need to be more complex than $(uname)?

#3

Fair point, I guess even WSL should return something sane.