bugGNU Octave - Bugs: bug #38549, comments on command line not...

 
 

bug #38549: comments on command line not terminated by newline with new parser

Submitter:  Rik <rik5>
Submitted:  Tue 19 Mar 2013 05:30:48 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  jwe
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Tue 19 Mar 2013 10:15:07 PM UTC, comment #2: 

Works for me.  Closing report.

Rik <rik5>
Group administrator
Tue 19 Mar 2013 10:04:56 PM UTC, comment #1: 
John W. Eaton <jwe>
Group administrator
Tue 19 Mar 2013 05:30:48 PM UTC, original submission:  

The following code should define a, b, and c.  Instead, the line immediately after a comment is ignored (treated as part of the comment).  This is a regression from the current stable parser (3.6.4).

Sample Code:


octave:1> a=1
a =  1
octave:2> %comment
octave:2> b=2
octave:2> c=a+b
error: 'b' undefined near line 1 column 5


The code works correctly if the commands are put in a file and the file is sourced, so this is only about comments typed in on the command line (such as with copy and paste of a chunk of code).

Rik <rik5>
Group administrator

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by jwe (Posted a comment)
  • -email is unavailable- added by rik5 (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2013-03-19 rik5 StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code