[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: merging functions from octave-forge
From: |
Keith Goodman |
Subject: |
Re: merging functions from octave-forge |
Date: |
Tue, 7 Jun 2005 10:03:13 -0700 |
I've set a few paths in my system-wide octaverc file (so, e.g,
www-data will pick them up). They appear on the bottom of my path.
When I do a savepath and exit and start Octave again, they appear on
top and bottom of my path (and appear in my ~/.octaverc as
addpath("blah")).
What's the best way to deal with that?
On 6/7/05, Bill Denney <address@hidden> wrote:
> On Mon, 6 Jun 2005, Keith Goodman wrote:
>
> > Wow. Dreams do come true.
>
> I'm glad that you like it.
>
> > I found a couple of problems.
> >
> > If "savefile" doesn't exist (e.g., I use your hard-coded path to
> > your octaverc file, or make one up) savepath crashes. That's because
> > there is a "if (exist(savefile) == 2)" but not an else.
>
> I fixed that (without an else, just by initializing a variable to empty).
>
> > Also I am unable to pass in a name of a file to save the path to.
> > That's because in
> >
> > (iscellstr(varargin)) && (size(varargin{1}) == prod(size(varargin{1})))
> >
> > size varargin{1} is [1 19] for something like "/home/kwg/.octaverc"
> > which is not equal to prod(size).
>
> I was tired last night. I was trying to test to make sure that the string
> was just one row. This is fixed now.
>
> > [from other message]
> > I'd also put the save paths at the end of octaverc instead of at the
> > beginning. If you save a path and then later delete a directory in the
> > saved path, addpath will produce an error the next time you start Octave
> > and exit octaverc before executing the other commands in the startup
> > file.
>
> I did that, but apparently (perhaps another bug in addpath) addpath only
> prints out an error, it doesn't actually error out.
>
> > Maybe be double safe (since you're changing someone's octaverc file) by
> > adding try catch.
>
> I added the try catch, too, but it doesn't really have an effect (though
> it does seem to be the correct thing to do).
>
> Bill
>
> --
> "If you believe the doctors, nothing is wholesome; if you believe the
> theologians, nothing is innocent; if you believe the military, nothing is
> safe."
> -- Lord Salisbury
>
>
- Re: merging functions from octave-forge, Keith Goodman, 2005/06/06
- Re: merging functions from octave-forge, Bill Denney, 2005/06/06
- Re: merging functions from octave-forge, Keith Goodman, 2005/06/07
- Re: merging functions from octave-forge, Keith Goodman, 2005/06/07
- Re: merging functions from octave-forge, Bill Denney, 2005/06/07
- Re: merging functions from octave-forge,
Keith Goodman <=
- Re: merging functions from octave-forge, Bill Denney, 2005/06/07
- Re: merging functions from octave-forge, Bill Denney, 2005/06/07
- Re: merging functions from octave-forge, David Bateman, 2005/06/08
- Re: merging functions from octave-forge, Paul Kienzle, 2005/06/12
- Re: merging functions from octave-forge, Paul Kienzle, 2005/06/12
Re: merging functions from octave-forge, Keith Goodman, 2005/06/07