[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [OctDev] isunix() returns 1 under cygwin

From: Etienne Grossmann
Subject: Re: [OctDev] isunix() returns 1 under cygwin
Date: Mon, 26 Dec 2005 23:38:57 -0500
User-agent: Mutt/

  Hi Andy,

thx for the answer. I should have added that I want to use isunix() to
determine whether I want to execute a (linux) binary called (say)
'foo' or a windows binary called 'fooWin.exe'. So I really want isunix
to return true iff it's Linux - my code will fail on other nixes but
that's ok for now.



ps: More in detail on what I'm doing, I'm patching David Lowe's SIFT
    [1] image feature detector code for Matlab so that it'll run both
    on Matlab and Octave. His code runs both on Win and Linux.

[1] David G. Lowe, "Distinctive image features from scale-invariant
    keypoints,"International Journal of Computer Vision, 60, 2 (2004),
    pp. 91-110.

On Mon, Dec 26, 2005 at 05:16:15PM -0500, Andy Adler wrote:
# On 12/26/05, Etienne Grossmann <address@hidden> wrote:
# > octave:8> help isunix
# > isunix is the user-defined function from the file
# > /homeætienne/progøctaveøctave-forgeøctave-forge/main/general/isunix.m
# >
# > Always returns true.  If you are on a windows machine, be sure to
# > put an isunix.m which always returns false in your path.
# 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.
# --
# Andy

Etienne Grossmann ------

Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:
How to fund new projects:
Subscription information:

reply via email to

[Prev in Thread] Current Thread [Next in Thread]