octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #39271] error('') does not abort execution of


From: anonymous
Subject: [Octave-bug-tracker] [bug #39271] error('') does not abort execution of script.
Date: Mon, 17 Jun 2013 18:39:38 +0000
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:21.0) Gecko/20100101 Firefox/21.0

URL:
  <http://savannah.gnu.org/bugs/?39271>

                 Summary: error('') does not abort execution of script.
                 Project: GNU Octave
            Submitted by: None
            Submitted on: Mon 17 Jun 2013 06:39:37 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Incorrect Result
                  Status: None
             Assigned to: None
         Originator Name: Mario Kleiner
        Originator Email: address@hidden
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.6.1
        Operating System: Any

    _______________________________________________________

Details:

Hi,

in the current stable Octave 3.6.x, the error() function, when invoked with an
empty error string '', and also mexErrMsgTxt("") from the C mex api with an
empty string, do not return control to the command prompt, as they should.
E.g.:


function test

x = 1
error('');
x = 2

end


Would result in output:

x = 1
x = 2

instead of aborting with an error after x = 1. error() with a non-empty string
behaves as expected. This was tested on Octave 3.6.

Best,
-mario




    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?39271>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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