I think isunix.m can be implemented this way:
## -*- texinfo -*-
## @deftypefn {Function File} {} isunix ()
## Return @sc{true} if Octave is running in a Unix environment.
## @end deftypefn
##
## @seealso{ispc, isstudent, octave_config_info}
function retval = isunix()
if (nargin > 0)
usage("isunix ()");
endif
retval = octave_config_info("unix");
endfunction
Note the usage of "in a Unix environment": it also returns true if we are
running on Cygwin.
Btw, is my usage of @sc{} appropriate?
Also, can I replace usage(...) above with this?
help("isunix");
error("");
William Poetra Yoga Hadisoeseno
__________________________________
Start your day with Yahoo! - Make it your home page!
http://www.yahoo.com/r/hs-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server. Download
it for free - -and be entered to win a 42" plasma tv or your very own
Sony(tm)PSP. Click here to play:
http://sourceforge.net/geronimo.php_______________________________________________
Octave-dev mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/octave-dev