octave-maintainers
[Top][All Lists]
Advanced

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

$PATH in system() shell


From: John W. Eaton
Subject: $PATH in system() shell
Date: Wed, 4 May 2011 09:43:23 -0400

On  3-May-2011, Thomas Weber wrote:

| Hi, 
| 
| the path used in the shell invoked via system() looks like the following
| (edited for better readability):
| 
| octave:1> system ('echo $PATH')
| /usr/lib/octave/3.2.4/site/exec/i486-pc-linux-gnu:
| /usr/lib/octave/api-v37/site/exec/i486-pc-linux-gnu:
| /usr/lib/octave/site/exec/i486-pc-linux-gnu:
| /usr/lib/octave/3.2.4/exec/i486-pc-linux-gnu:
| /usr/bin:
| ***
| /usr/lib/ccache:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
| 
| The line marked with three asterisks marks the beginning of my path as
| user. However, the fact that /usr/bin is prepended to my path means that
| I can't use ccache when building packages via pkg.m.
| 
| Is there a reason that /usr/bin is prepended by Octave here? I've
| checked with 3.4 and it's still the same.

There is a bug report about this problem here:

  https://savannah.gnu.org/bugs/index.php?31695

jwe


reply via email to

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