[Top][All Lists]

[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:

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:
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:
How to fund new projects:
Subscription information:

reply via email to

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