On Sun, Jan 3, 2010 at 5:56 PM, Hillel Lubman <shtetldik at gmail.com> wrote:
> Why does Firefox currently uses "SunOS" as part of user agent on OpenSolaris
> (as well as on Solaris 10)? Would it make more sense to use "Solaris" or even
> better "OpenSolaris" to distinguish the two?


firefox  and a bunch of other software uses the output from
the uname command to distinguish between OSen:

$ uname -a
SunOS blinder 5.11 snv_130 i86pc i386 i86pc
$ uname -s
SunOS
$ uname -r
5.11
$ uname -v
snv_130

This is a method which is pretty reliable across unix- and
unix-like operating systems.


James
--
Solaris kernel software engineer, system admin and troubleshooter
              http://www.jmcp.homeunix.com/blog
                  http://blogs.sun.com/jmcp
Find me on LinkedIn @ http://www.linkedin.com/in/jamescmcpherson

Reply via email to