[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as e
From: |
Philip Nienhuis |
Subject: |
[Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected |
Date: |
Fri, 28 Oct 2016 13:23:52 +0000 (UTC) |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:43.0) Gecko/20100101 Firefox/43.0 SeaMonkey/2.40 |
Update of bug #49454 (project octave):
Status: Patch Submitted => Ready For Test
_______________________________________________________
Follow-up Comment #7:
@Mike comment #2:
Matlab r2012a has the same issue as Octave; comments need a delimiter ("word
boundary") around them. So yes, Octave's textscan is Matlab-compatible here,
but it's a little disappointing.
>> format compact
>> C = textscan (['hello#foo' char(10) 'world'], '%s', 'commentstyle', '#')
C =
{2x1 cell}
>> C{1}
ans =
'hello#foo'
'world'
>> C = textscan (['hello #foo' char(10) 'world'], '%s', 'commentstyle', '#')
C =
{2x1 cell}
>> C{1}
ans =
'hello'
'world'
>>
Octave's previous textscan.m was better in this respect; it could also
distinguish cuddling literals.
This was discussed with Lachlan in patch #8783 in a.o., comment #99 and
comment #5.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?49454>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [Octave-bug-tracker] [bug #49454] strread commentstyle shell doesn't work as expected, anonymous, 2016/10/27
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Rik, 2016/10/27
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Rik, 2016/10/27
- Message not available
- Message not available
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/27
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected,
Philip Nienhuis <=
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Rik, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Rik, 2016/10/28
- [Octave-bug-tracker] [bug #49454] strread commentstyle doesn't work as expected, Philip Nienhuis, 2016/10/29