bugGNU Octave - Bugs: bug #57859, Problem with continuation lines on...

 
 

bug #57859: Problem with continuation lines on the command line

Submitter:  José Matos <jamatos>
Submitted:  Wed 19 Feb 2020 06:12:06 PM UTC
   
 
Category:  Interpreter Severity:  4 - Important
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.0.90 Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Jump to the original submission

Wed 19 Feb 2020 11:03:19 PM UTC, comment #6: 

Apparently user error, and/or cruft in my build.  It does work for me now.  I grafted the changeset over to stable as well.

So, why is it that the test suite couldn't catch this?  There are line continuation tests in test/line-continue.tst.

I made my own file with


%!test
%! x = [1,2,3 ...
%! 4,5];
%! assert (x, [1,2,3,4,5]);


and Octave passes this.  Is there any way to create a BIST test for this?

Rik <rik5>
Group administrator
Wed 19 Feb 2020 09:59:28 PM UTC, comment #5: 

The fix works for me, but yes is only on the default branch for now. I agree, should be applied to the stable branch as well.

Mike Miller <mtmiller>
Group Member
Wed 19 Feb 2020 09:51:22 PM UTC, comment #4: 

Just tested and I still have a problem


octave:1> x = [1, 2, 3 ...
> 4, 5]
error: vertical dimensions mismatch (1x3 vs 1x2)


Whatever fix is found should be grafted on to the stable branch so that it becomes part of 6.1.

Rik <rik5>
Group administrator
Wed 19 Feb 2020 08:27:10 PM UTC, comment #3: 

Oops.

I pushed the following changeset on default:

  http://hg.savannah.gnu.org/hgweb/octave/rev/1db62b2d6c39

If this doesn't cause trouble, please go ahead an graft it on to stable.  I probably would have done that initially, but I was working on default and pushed before I thought about exactly where this bug should be fixed.

John W. Eaton <jwe>
Group administrator
Wed 19 Feb 2020 08:25:02 PM UTC, comment #2: 

I pushed the following changeset on default:


John W. Eaton <jwe>
Group administrator
Wed 19 Feb 2020 06:22:42 PM UTC, comment #1: 

Confirmed, and also affects command line input in a terminal, and also affects multi-line input read through standard input. Does not affect multi-line scripts evaluated through the '--eval' option, and does not affect function and script files.

Example on stdin:


$ printf "x = [1, 2, 3, 4, ...\n5, 6]\n" | octave
error: vertical dimensions mismatch (1x4 vs 1x2)


Mike Miller <mtmiller>
Group Member
Wed 19 Feb 2020 06:12:06 PM UTC, original submission:  

In Octave 6 and 7 there is a problem with continuation lines in the command line/window:

>> c = ['1 2 3 ', ...

'4 5 6']
c =

1 2 3
4 5 6

While in Octave 5 it works as expected:

>> c = ['1 2 3 ', ...

'4 5 6']
c = 1 2 3 4 5 6

José Matos <jamatos>

 

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

    Date Changed by Updated Field Previous Value => Replaced by
    2020-02-20 rik5 Open/ClosedOpen Closed
    2020-02-19 rik5 StatusPatch Reviewed Fixed
    2020-02-19 rik5 StatusReady For Test Patch Reviewed
    2020-02-19 jwe StatusConfirmed Ready For Test
    2020-02-19 mtmiller CategoryGUI Interpreter
        Severity3 - Normal 4 - Important
        StatusNone Confirmed

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code