help-octave
[Top][All Lists]
Advanced

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

addpath(), path() vs. pathsep()


From: Christian Böhme
Subject: addpath(), path() vs. pathsep()
Date: Tue, 26 May 2009 22:25:08 +0200
User-agent: Mozilla/5.0 (X11; U; Linux ppc; en-US; rv:1.8.1.19) Gecko/20081204 Iceape/1.1.14 (Debian-1.1.14-1)

Hello,

I am trying to have Octave use a path separator (`;') different
from the one (`:') that, for reasons escaping me, is defined as
"system-dependent" and not customisable.  I do this by adding the
following code to my ~/.octaverc:

function s = local_pathsep();
    s = ';';
endfunction

dispatch('pathsep', 'local_pathsep', 'any');

Invoking pathsep() in each Octave instance on the command line
then does indeed return

ans = ;

which is the expected answer.  However, adding a directory with
a path component containing a colon still fails due to Octave
splitting the path string at each colon and complaining about
the non-existing directory entry.

Although it appears that there was a discussion on the topic
years ago (http://www.nabble.com/Use-of-pathsep-in-rmpath%2C\
-addpath-and-path-td4225829.html#a4228312) pathsep() is apparently
(still) not used by addpath() & friends.  The version I am using is
3.0.5 on the current Debian "testing" distribution.

Is there any way other than manipulating the Octave sources that
allows me to use a path separator of my own personal choice ?


Thanks & regards,
Christian


reply via email to

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