[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
problem with the PATH variable
From: |
Mikolaj Krzewicki |
Subject: |
problem with the PATH variable |
Date: |
Sun, 13 Apr 2003 19:47:22 +0200 |
User-agent: |
KMail/1.5 |
hi all,
i,m having a little bit of a problem with setting the searchpath in octave to
what i want it to be.
I have two system binaries called "convert": one in /usr/bin and one in
$DELPHIROOT/bin (part of a sesmic package)
my systemwide path is set to first look in $DELPHIROOT so it's not a problem,
bash:>which convert
returns /home/DELPHI/bin/convert
but in octave calling system("which convert") returns /usr/bin/convert! (so
all calls to convert get me ImageMagick's convert)
octave:7> getenv("PATH")
ans = /usr/libexec/octave/2.1.46/site/exec/powerpc-unknown-linux-gnu:
/usr/libexec/octave/site/exec/powerpc-unknown-linux-gnu:
/usr/libexec/octave/2.1.46/exec/powerpc-unknown-linux-gnu:/usr/bin
:~/bin:/home/SU/bin:/home/DELPHI/bin:/usr/kde/3.1/bin:/bin:/usr/bin:/usr/local/bin
:/opt/bin:/usr/powerpc-unknown-linux-gnu/gcc-bin/3.2:/usr/X11R6/bin:/opt/ibm-jdk-1.3.1/bin
:/opt/ibm-jdk-1.3.1/jre/bin:/usr/qt/3/bin:/usr/kde/3.1/bin
it looks like octave inherits the PATH var from the shell it's started from
but first it defines some of it's own INCLUDING /usr/bin
so the question is this: how do i remove /usr/bin from the "standard" path?
(it is included in my own shell path anyway. but on the wrong place)
system is:
octave-2.1.46
gentoo linux on ppc
thanks in advance, Mikolaj Krzewicki
-------------------------------------------------------------
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
-------------------------------------------------------------
- problem with the PATH variable,
Mikolaj Krzewicki <=