Path

August 12th, 2009 Posted in Functions

Get/set search .
, by itself, prettyprints ’s current search . The
initial search list is set by PATHDEF, and is perhaps
individualized by STARTUP.

P = returns a string containing the in P.
(P) changes the to P. () refreshes ’s
view of the directories on the , ensuring that any changes
to non-toolbox directories are visible.

(P1,P2) changes the to the concatenation of the two
strings P1 and P2. Thus (,P) appends a new directory to
the current and (P,) prepends a new . P1 or
P2 are already on the , they are not added.

example, the following statements add another directory
to ’s search on various operating systems:

Unix:

1
path(path,'/home/myfriend/goodstuff')

Windows:

1
path(path,'c:\tools\goodstuff')

See also what, cd, dir, addpath, rmpath, genpath, rehash

Related posts

Leave a Reply

You must be logged in to post a comment.