[Top][All Lists]

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

[Octave-bug-tracker] [bug #36375] path order after path(p)

From: Jordi Gutiérrez Hermoso
Subject: [Octave-bug-tracker] [bug #36375] path order after path(p)
Date: Wed, 09 May 2012 03:30:08 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20110109 Lakechicken/3.6.13

Follow-up Comment #5, bug #36375 (project octave):

What does Matlab do about system paths? Can you overwrite those? You can in
Octave. When you use path or addpath and you attempt to add a directory
already in the path, that directory gets moved to the top of the list. So when
you do


the following happens for each x in p: 

1) If x is already in the path, it gets moved to the top of the list (and its
status as system path or not gets preserved).
2) Else, add x to the top of the list.

So when you do path(p) and p contains system paths, the non-system paths will
get moved to the bottom.

Is this a bug only because Matlab doesn't do this? Does this really have to be
the same as Matlab?


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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