help-octave
[Top][All Lists]
Advanced

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

Re: Upgrade from 2.1.50 to 2.1.73 breaks code on Windows?


From: Keith Goodman
Subject: Re: Upgrade from 2.1.50 to 2.1.73 breaks code on Windows?
Date: Sun, 16 Apr 2006 08:57:05 -0700

On 4/16/06, David Smith <address@hidden> wrote:
> I recently updated from Octave 2.1.50 to 2.1.73 on my Windows-XP
> computer.  This is using the Windows binary install in both cases.  But
> some of my code now doesn't work with 2.1.73 - for a minor reason which
> I will now illustrate:
>
> If I place the following in a file named "testdata.m":
>
> x = [
> 1 2
> 3 4
> ];
>
> and try to execute "testdata" from the command line, it works in version
> 2.1.50 but not in 2.1.73.  For version 2.1.73 it produces these messages:
>
>   syntax error
>
>  >>> 1 2 3
>     ^
>
> parse error near line 3 of file
> /cygdrive/c/home/davids/projects/TRP_bench/SamHammondsCablePull/testdata.m
>
>   syntax error
>
>  >>> 1 2 3
>         ^
>
> Notice that if I type the statements from the Octave command line it
> works fine.  Also it is ok if I replace "[" with "[\", everything else
> being the same.
>
> My question is: Is this a bug or a feature?

It works for me in 2.1.73 and 2.9.4:

>> testdata
>> x
x =

  1  2
  3  4

>> type testdata
testdata is the script file: /home/me/testdata.m

x = [
1 2
3 4
];



-------------------------------------------------------------
Octave is freely available under the terms of the GNU GPL.

Octave's home on the web:  http://www.octave.org
How to fund new projects:  http://www.octave.org/funding.html
Subscription information:  http://www.octave.org/archive.html
-------------------------------------------------------------



reply via email to

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