Murga-Projects Forums

Full Version: [OSX] murgaLua.getHostOsName()
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello again,

why returns murgaLua.getHostOsName() at OSX the string macos ?

MacOS is dead...
OSX is alive

getHostOsName() should return something useful from "uname -a"
chrimo$ uname -a
Darwin m49svr4169g5.moccy.lan 8.10.0 Darwin Kernel Version 8.10.0: Wed May 23 16:50:59 PDT 2007; root:xnu-792.21.3~1/RELEASE_PPC Power Macintosh powerpc

What is POSIX conform ?
Darwin ???

Same think should be changed at Makefile
Good idea or waste of time ?
Bye
Chrimo
uname doesn't work on Windows. My guess is that the function was made as simply as possible as a way to do nothing more than determine which supported platform you're running, so the script can be adjusted accordingly (such as setting an appropriate directory separator or deciding whether or not a particular external command can be run). In this situation it doesn't matter if it returns macos, osx, apple, or themostexpensivebsdevermade. As long as there is a difference between the suported platforms it's doing its job. Simplicity rules.

A POSIX system is one which adheres to an operating system standard based on Unix. BSD is Unix, and therefore POSIX. OSX is BSD, and therefore POSIX. Linux is also POSIX, but out of a conscious decision rather than inheritance. Windows is not POSIX.

mikshaw Wrote:
A POSIX system is one which adheres to an operating system standard based on Unix. BSD is Unix, and therefore POSIX. OSX is BSD, and therefore POSIX. Linux is also POSIX, but out of a conscious decision rather than inheritance. Windows is not POSIX.


That is a common misconception (which caught me out before) ...

http://en.wikipedia.org/wiki/POSIX

Cheers
JohnM

How bizarre. I had no idea there was certification involved, or that NT-based systems were certified. It's a crazy mixed up topsy-turvy higgledy-piggledy world.

mikshaw Wrote:
How bizarre. I had no idea there was certification involved, or that NT-based systems were certified. It's a crazy mixed up topsy-turvy higgledy-piggledy world.


In the grand scheme of things that's nothing (off topic) :

http://www.groklaw.net/article.php?story...7111019189

OR ...

http://www.betanews.com/article/Court_Ru...1188323085

...

Cheers
JohnM

JohnMurga Wrote:

mikshaw Wrote:
How bizarre. I had no idea there was certification involved, or that NT-based systems were certified. It's a crazy mixed up topsy-turvy higgledy-piggledy world.


In the grand scheme of things that's nothing (off topic) :

http://www.groklaw.net/article.php?story...7111019189

OR ...

http://www.betanews.com/article/Court_Ru...1188323085

...

Cheers
JohnM


Hi Big Grin
let's make our own names...

Win32,Linux,OSX is looks much better than current windows, linux, macos

Just cosmetics ans not POSIX ;-)
Bye
Christian

[still off-topic]
You know, every time I read one of these Groklaw or FSDaily articles that has anything at all to do with Microsoft, I feel increasing anger and hatred. I'm pretty much anti-capitalist (in the "dog-eat-dog" sense of the word, anyway) and already have a strong dislike for most of the business tactics used by just about every large-scale company, and then something like this comes out that shows a complete lack of morals (as opposed to the simple lack of decency shown through the act of buying out competitors and spreading false rumors). It's even worse because most people don't even seem to care.
Reference URL's