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

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

[Octave-bug-tracker] [bug #51120] missing line number error in batch mod


From: Fabio
Subject: [Octave-bug-tracker] [bug #51120] missing line number error in batch mode
Date: Fri, 26 May 2017 10:06:25 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0

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

                 Summary: missing line number error in batch mode
                 Project: GNU Octave
            Submitted by: efferre79
            Submitted on: Fri 26 May 2017 02:06:23 PM UTC
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: None
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.2.1
        Operating System: GNU/Linux

    _______________________________________________________

Details:

I am using octave 4.2.1 patched with changeset 7eb0077e86f0. 

Let's use a simple one-line script with a syntax error in the format specifier
string:


t=sprintf('hello %');


The generated error report is different when I execute the script in batch
mode comparing to when the script is executed at the interpreter command line
(both in CLI or GUI mode). In the first case the given error is:

$ octave test.m
warning: function ./test.m shadows a core library function
error: sprintf: invalid format specified
error: execution exception in test.m

In the second case:

octave:1> test
error: sprintf: invalid format specified
error: called from
    test at line 1 column 2






    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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