octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #31608] regression bug: nested cell array item


From: Yaroslav Halchenko
Subject: [Octave-bug-tracker] [bug #31608] regression bug: nested cell array items and [optional] commas
Date: Tue, 09 Nov 2010 19:38:47 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101028 Iceweasel/3.5.15 (like Firefox/3.5.15)

URL:
  <http://savannah.gnu.org/bugs/?31608>

                 Summary: regression bug:  nested cell array items and
[optional] commas
                 Project: GNU Octave
            Submitted by: yoh
            Submitted on: Tue 09 Nov 2010 07:38:46 PM GMT
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Other
                  Status: None
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 3.2.4
        Operating System: GNU/Linux

    _______________________________________________________

Details:

Seems to come in 3.2.4 since the same script was reported to work ok in 3.2.3
. ATM I have access only to older version:


$> echo "ver(); {1 2 {3 4}}; 'fine'" | octave -q 
----------------------------------------------------------------------
GNU Octave Version 3.0.1
GNU Octave License: GNU General Public License
Operating System: Linux 2.6.26-1-amd64 #1 SMP Sat Jan 10 17:57:00 UTC 2009
x86_64
----------------------------------------------------------------------
ans = fine


on current system


$> echo "ver(); {1 2 {3 4}}; 'fine'" | octave -q || { echo "ver()" | octave
-q; }
parse error:

  syntax error

>>> ver(); {1 2 {3 4}}; 'fine'
                   ^

----------------------------------------------------------------------
GNU Octave Version 3.2.4
GNU Octave License: GNU General Public License
Operating System: Linux 2.6.32-5-amd64 #1 SMP Sat Oct 30 14:18:21 UTC 2010
x86_64


and on current tip of octave:


$> echo "ver(); {1 2 {3 4}}; 'fine'" | octave3.3 -q || { echo "ver()" |
octave3.3 -q; }
parse error:

  syntax error

>>> ver(); {1 2 {3 4}}; 'fine'
                   ^

----------------------------------------------------------------------
GNU Octave Version 3.3.53+
GNU Octave License: GNU General Public License
Operating System: Linux 2.6.32-5-amd64 #1 SMP Sat Oct 30 14:18:21 UTC 2010
x86_64



Adding , within nested array definition "fixes" the problem. Matlab also
experiences no problem





    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?31608>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]