bugGNU Octave - Bugs: bug #45510, multi-line string in octave...

 
 

bug #45510: multi-line string in octave requires a comma

Submitted by:  None
Submitted on:  Thu 09 Jul 2015 08:36:22 PM UTC  
 
Category: InterpreterSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Matlab Compatibility
Status: ConfirmedAssigned to: None
Originator Name: Nasser M. AbbasiOriginator Email: -unavailable-
Open/Closed: OpenRelease: dev
Operating System: GNU/Linux

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 29 Dec 2016 10:14:35 PM UTC, comment #2:

This issue is still present in Octave 4.2.0.

Hartmut <hardy>
Thu 09 Jul 2015 11:27:32 PM UTC, comment #1:

Confirmed. It's an odd corner case, but it should be fixed. The problem goes away if the line continuation sequence '...' is set off from the text in any way. This could mean adding a space before it, after it, or before the 'b' character.

All of the following work:

Rik <rik5>
Project Administrator
Thu 09 Jul 2015 08:36:22 PM UTC, original submission:

This works in Matlab 2015a

myString=['a'...
'b'];

But gives syntax error in Octave.

parse error:
syntax error

>>> 'b'];

^

Solution is to rewrite it by adding a comma as separator, as in

myString=['a',...
'b'];

Now it works the same on Matlab and Octave. Since comma is not required in Matlab, this is an incompatibility issue.

Thanks,
--Nasser

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Digest:
   bug dependencies.

 

Carbon-Copy List
  • -unavailable- added by hardy (Posted a comment)
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by rik5
  • -unavailable- added by None (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 4 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Fri 30 Dec 2016 12:26:15 AM UTCrik5Release4.0.0=>dev
    Thu 09 Jul 2015 11:34:52 PM UTCrik5Dependencies-=>bugs #45512 is dependent
    Thu 09 Jul 2015 11:27:32 PM UTCrik5StatusNone=>Confirmed
      Carbon-Copy-=>Added jwe

    Back to the top


    Powered by Savane 3.1-cleanup1