octave-maintainers
[Top][All Lists]
Advanced

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

Re: Octave's exit status


From: Bernardo Sulzbach
Subject: Re: Octave's exit status
Date: Fri, 9 Dec 2016 11:33:50 -0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2.0

On 12/09/2016 06:47 AM, Julien Bect wrote:
Hi all,

I observe the following with Octave 4.2.0:

$ octave --eval '1+?'
parse error:

  syntax error

1+?
      ^

error: unhandled execution exception -- eval failed

$ echo $?
0

Is this a feature or a bug ?


I can't answer for who wrote the code, but I don't consider this a bug myself. I don't think that Octave itself failed as much as the evaluation failed (the reasons are clearly presented, too). This seems to me a successful attempt to evaluate an expression, even though this resolves into errors.

I don't think it would be an issue to return a nonzero value in this case, but I also don't think it would fix anything.




reply via email to

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