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

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

[Octave-bug-tracker] [bug #62865] 'path' should return drive letter, not


From: Nicholas Jankowski
Subject: [Octave-bug-tracker] [bug #62865] 'path' should return drive letter, not UNC path when 'addpath' was called with drive letter
Date: Fri, 12 Aug 2022 10:48:29 -0400 (EDT)

Follow-up Comment #16, bug #62865 (project octave):

is 2 really that much harder?  it has always been possible to have a location
in a system PATH twice (at least, most systems I've looked at make no attempt
to trim any redundancies). an 'is_in_path' check just navigates through them
in order, and stops when it finds one. if something exists in multiple
locations, typically, unless you've asked it to find all occurrences, the
first one wins for execution, and that successful path entry is returned as
the location, and it looks no farther.  Now in matlab, which can have a -ALL
option which will return every instance of a function it sees in the path. but
even still, if something exists twice, (or is pointed to twice) it would just
get listed twice. 

is there a use case where you would need to know something's location(s) and
need to make use of a non-first one? 


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62865>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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