[Top][All Lists]

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

Re: mkdir return status changed from 2.7.2 to 2.9.4

From: William Poetra Yoga Hadisoeseno
Subject: Re: mkdir return status changed from 2.7.2 to 2.9.4
Date: Wed, 18 Jan 2006 01:22:01 +0800

On 1/17/06, Jean-Francois Cardoso <address@hidden> wrote:
> It just occured to me that an alternate solution could be testing the
> emptiness of the returned MSG error message.  The help texts for
> 2.1.xx and 2.9.xx both say that MSG is empty in case of success and
> "system dependent" for failure.
> Now, strictly speaking, "system dependent" does not imply "non empty".
> Or maybe it does?
> So my question is: Do we have a guarantee, on all platforms, that
>   sucess/failure == empty/nonempty (MSG) ?

I think it would be better if you try making a directory that is
always guaranteed to fail or always guaranteed to succeed. Then from
the return value you will know what to expect (zero/non-zero).

William Poetra Yoga Hadisoeseno

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]