From bug-request at octave dot org Wed Apr 5 13:20:56 2006 Subject: Re: addpath, rmpath, savepath From: "Robert S. Weigel" To: bug at octave dot org Date: Wed, 05 Apr 2006 13:19:56 -0500 There are a few remaining compatability issues with addpath/rmpath. There are also a number of suggestions I have for the behavior of these functions. I have made fixes and changes against a recent octave-forge version and before I apply them and send in the diffs against the latest in the Octave CVS, I would like some feedback on whether the changes are wanted. The issues are: octave:1> addpath('/tmp');addpath('/tmp/');path adds /tmp and /tmp/ to the path. This is both a compatability and an unexpected behavior issue. (Perhaps it is not too unexpected beause tcsh allows it. However, tcsh allows multiple instances of the same directory in the path environment variable which neither Octave nor Matlab do.). Also, you will notice that '.' gets pushed down in the path list. This is a problem that caught me a few times. Matlab always has '.' first in the path list (and it is not listed by when "path" is invoked, but I think it is better to list it). Also, I suggest a warning about incompatable behavior when the (extremely useful) "//" syntax is used. Bob On Wednesday 05 April 2006 12:04, Keith Goodman wrote: > On 4/4/06, John W. Eaton wrote: > > I think we should have a "setpath" function and have savepath write > > > > setpath ("...") > > > > instead of > > > > LOADPATH = "..." > > > > so that saving and loading the path will continue to work properly > > after we eliminate built-in variables. I made this change to > > savepath.m and created a simple setpath.m file. > > Did you forget to commit setpath.m? I don't see it in scripts/path/. > > > > ------------------------------------------------------------- > 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 > ------------------------------------------------------------- ------------------------------------------------------------- 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 -------------------------------------------------------------