From: William P. Y. H. <wil...@gm...> - 2005-12-27 07:18:32
|
On 12/27/05, Andy Adler <ad...@nc...> wrote: > The semantics of 'isunix' depends on what you mean by UNIX. > Strictly speaking, only certain well defined OSes are UNIX. Linux, > for example, is not. > > On the other hand, maybe UNIX means OSes that behave like > UNIX in most ways. cygwin has UNIX process semantics > (ie. fork) and file semantics (symlinks, select on files, etc.) > > So, is cygwin UNIX? Clearly, a mingwin octave is not unix. > > Maybe isunix should make a specific test. > In Octave 2.9.4, isunix() is implemented as function retval =3D isunix () if (nargin =3D=3D 0) retval =3D octave_config_info ("unix"); else usage ("isunix ()"); endif endfunction AFAIK, it returns 1 on Cygwin (I know this by reading the sources, so I'm not very sure) |