octave-maintainers
[Top][All Lists]
Advanced

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

Re: path handling


From: Bill Denney
Subject: Re: path handling
Date: Thu, 11 May 2006 18:23:17 -0400 (EDT)

On Thu, 11 May 2006, John Swensen wrote:

Would you be willing to accept a patch for an additional function that takes all the directories in the search path and makes a more terse list? For example a function called terse_path() would return something like
[ '.'
 '/home/jswensen/m'
 '/home/jswensen/pkg/m//'
 '/usr/share/octave-2.9.5+/blah//' ]

where the '//' at the end indicates the directories are recursive.  I
just know that if I ever have a deep tree of M files, and want to know
which path comes first in the search path, it can get *really* ugly.

It would probably be more useful and drive fewer user questions if it generated commands that would regenerate the path like:

addpath ('.');
addpath ('/home/jswensen/m');
addpath (genpath ('/home/jswensen/pkg/m'));
addpath (genpath ('/usr/share/octave-2.9.5+/blah');

Bill

--
"Of the more than 475,000 units of blood donated after the attacks on the
World Trade Center and the Pentagon, only 258 were actually used for
disaster victims."
  -- Dr. Paul Schmidt, in the New England Journal of Medicine



reply via email to

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