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

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

[Octave-bug-tracker] [bug #49184] working directory removed from path af


From: Mike Miller
Subject: [Octave-bug-tracker] [bug #49184] working directory removed from path after changing to a pathdef directory
Date: Mon, 26 Sep 2016 22:47:29 +0000 (UTC)
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101 Firefox/49.0

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

And another addition. This bug appears to have been present in the load path
code for a while, but was hidden by another bug in make_absolute_filename.

The changeset I quoted fixed make_absolute_filename so that works like this:


In Octave 3.6.4 through 4.0.3:
>> cd /tmp
>> make_absolute_filename .
ans = /tmp/

In Octave 4.2:
>> cd /tmp
>> make_absolute_filename .
ans = /tmp



This fix revealed the bug that was always present in load-path.cc, which can
be shown going back to 3.6.4 with the following code (it *must* be / because
of the trailing slash behavior I showed above):


>> addpath /
>> rmpath /
>> cd /
>> cd
>> path


After this command sequence, the load path will no longer contain the "."
entry.

    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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