bugGNU Octave - Bugs: bug #51120, missing line number error in batch...

 
 

bug #51120: missing line number error in batch mode

Submitter:  Fabio <efferre79>
Submitted:  Fri 26 May 2017 02:06:23 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  None
Status:  Duplicate Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 4.2.1 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sat 27 May 2017 05:31:35 PM UTC, comment #2: 

Confirmed, but this is a duplicate of bug #49346.  Closing this report and leaving the original open.

Rik <rik5>
Group administrator
Sat 27 May 2017 04:00:22 PM UTC, comment #1: 
Anonymous
Fri 26 May 2017 02:06:23 PM UTC, original submission:  

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


Fabio <efferre79>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by efferre79 (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2017-05-27 rik5 StatusNone Duplicate
        Open/ClosedOpen Closed
    2017-05-27 rik5 Dependencies- Depends on bugs #49346

    Back to the top

    Powered by Savane 3.13-caa5.
    Corresponding source code