help-octave
[Top][All Lists]
Advanced

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

Re: Does save support append


From: Kristjan Onu
Subject: Re: Does save support append
Date: Tue, 26 Jun 2007 11:45:03 -0500
User-agent: Mutt/1.5.13 (2006-08-11)

John W. Eaton wrote:
> On 25-Jun-2007, Kristjan Onu wrote:
> 
> | Hi,
> | 
> | I am seeking clarification regarding whether the save command supports
> | the append option.
> | 
> | The file NEWS.2 states:
> | 
> |   * The save command now accepts the option -append to save the
> |     variables at the end of the file, leaving the existing contents.
> | 
> | When I run the attached test file however, the error 'x not found' is
> | triggered.
> | 
> | I have tried this using Debian's Octave2.9.9-8etch1 as well as the
> | CVS version updated a couple of hours ago.
> | 
> | Best,
> | 
> | K
> | function append_test
> | 
> | x = 1;
> | save("at_file","x")
> | 
> | y = 2;
> | 
> | save("-append","at_file","y")
> | 
> | clear
> | 
> | load("at_file")
> | 
> | if ~exist("y")
> |   error("y not found")
> | end
> | 
> | if ~exist("x")
> |   error("x not found")
> | end
> 
> Please try the following patch.
> 
> It's best to report bugs to the address@hidden list.
> 
> Thanks,
> 
> jwe

Yes, the patch fixes the problem. Thanks!

K


reply via email to

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