Fix to allow 'compare_versions.m' handle version numbers ending with period

Muthiah Annamalai muthuspost at gmail.com
Mon Jan 26 14:42:53 CST 2009


Ben Abbott wrote:
> On Monday, January 26, 2009, at 01:42PM, "Muthiah Annamalai" <muthuspost at gmail.com> wrote:
>   
>> Hello there,
>>
>> I built Octave from sources (3.1.51+) and my gnuplot interface failed, 
>> for the following
>> reason: __gnuplot_version__() returns 4.2. in my computer, and 
>> compare_versions.m
>> script doesnt recognize version numbers ending with a "." as you can see 
>>     
> >from the
>   
>> runs below.
>>
>> __gnuplot_version__()
>> ans = 4.2.
>>     
>
> We should look more closely at __gnuplot_version__ as well. There may be a bug here.
>
> What do you get when you type the following?
>
>     [status, output] = system (sprintf ("%s --version", gnuplot_binary ()))
>
> I get
>
>     status = 0
>     output = gnuplot 4.2 patchlevel 4 
>
> __gnuplot_version__ replies  "4.2"
>
> I would have expected to get 4.2.4.
>
> Ben
>
>   
I get
octave:1> [status, output] = system (sprintf ("%s --version", 
gnuplot_binary ()))
 status = 0
 output = gnuplot 4.2 patchlevel 0

octave:3> __gnuplot_version__()
ans = 4.2.

I am open to the suggestions for changes. Just that I wanted a quick fix 
on my computer.

-Muthu






More information about the Bug-octave mailing list