octaverc and version in path?
Ben Abbott
bpabbott at mac.com
Fri Dec 28 20:21:59 CST 2007
On Dec 29, 2007, at 9:52 AM, Daniel J Sebald wrote:
> Ben Abbott wrote:
>
>> This inclusion of the path presents some problems. For example,
>> the .octaverc is not upgraded when octave is, and produces a
>> conflict in the event a user wants to install different versions
>> of octave.
>> I assume the version information is there for a reason, what is
>> that reason?
>> Might something be done regarding how the path is handled to
>> facilitate the upgrade process, and perhaps allow for installations
>> of multiple versions?
>
> OCTAVE_VERSION has been around fairly long. Could one test that
> variable inside .octaverc?
>
> Dan
Yes such a test would work. However, the creation and automatic
maintenance of .octaverc might get messy. Especially since users will
commonly edit it.
In any event, some options are
(1) Modify savepath.m to create a .octaverc to support different
versions of octave.
(2) Modify savepath.m/.octaverc to remove the references to the
version number.
(3) Remove all path information respecting octave's core functions/oct-
files from .octaverc and load the default each time as done when
no .octaverc exists.
Those are off the top of my head.
Anyone have thoughts as to the "big picture" pros/cons of these options?
Ben
More information about the Octave-maintainers
mailing list