octave-bug-tracker
[Top][All Lists]
Advanced

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

[Octave-bug-tracker] [bug #51706] dir_in_loadpath, file_in_loadpath are


From: John W. Eaton
Subject: [Octave-bug-tracker] [bug #51706] dir_in_loadpath, file_in_loadpath are incorrect when input is absolute directory name
Date: Wed, 9 Aug 2017 14:58:26 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Firefox/52.0

Follow-up Comment #4, bug #51706 (project octave):

Maybe the name of the function is misleading.  It is more like "find a file
(or directory) also searching a list of directories".  If the file (or
directory) name is absolute and it exists, then it can be found, so it returns
the name of the file (or directory).

The purpose of the function is not to say whether the directory is contained
in the list of directories that make up the load path, or to only search for
subdirectories of path elements.

As far as I know, it's always been this way because this is the way that the
kpathsearch library works for finding files and that's what Octave originally
used for all path searching.  If you change it so that it only searches for
subdirectories of path elements, then you will have to check that each
location where dir_in_loadpath is used is also modified to also check for
absolute names, or verify that searching for absolute names is actually NOT
wanted in those places.


    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?51706>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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