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

 
 

bug #51120: missing line number error in batch mode

Submitted by:  Fabio <efferre79>
Submitted on:  Fri 26 May 2017 02:06:23 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: None
Status: DuplicateAssigned to: None
Originator Name: Open/Closed: Closed
Release: 4.2.1Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Administrator
Sat 27 May 2017 04:00:22 PM UTC, comment #1:

See also https://savannah.gnu.org/bugs/?item_id=49346

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:

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 File(s):
   
   
Comment:
   

No files currently attached

 

Digest:
   bug dependencies.

Items that depend on this one: None found

 

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

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 27 May 2017 05:31:35 PM UTCrik5StatusNone=>Duplicate
      Open/ClosedOpen=>Closed
    Sat 27 May 2017 05:30:27 PM UTCrik5Dependencies-=>Depends on bugs #49346

    Back to the top


    Powered by Savane 3.1-cleanup1