bugGNU Octave - Bugs: bug #61216, "rmpath" can be used to...

 
 

bug #61216: "rmpath" can be used to remove the current directory "." from the load path

Submitter:  Markus Mützel <mmuetzel>
Submitted:  Fri 24 Sep 2021 03:53:55 PM UTC
   
 
Category:  Interpreter Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Missed Error or Warning
Status:  Fixed Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * 6.3.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Nov 2021 05:34:34 AM UTC, comment #2: 

Now released in Octave 6.4.0.

Closing item.

Kai Torben Ohlhus <siko1056>
Group Member
Fri 24 Sep 2021 04:00:52 PM UTC, comment #1: 

That was easier to fix than I would have expected.

Pushed a change to the stable branch here:
http://hg.savannah.gnu.org/hgweb/octave/rev/3b6e0f476381

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Fri 24 Sep 2021 03:53:55 PM UTC, original submission:  

The current directory (`.`) should always be first in the load path order.

Using `rmpath ('.')` correctly displays a warning and does nothing.
However, `rmpath ('../current_folder')` (where "current_folder" is the name of the current folder) removes the current directory from the load path.

That should not happen. Instead, it is probably best if the same warning would be displayed and `.` stayed at the top of the load path.

See also this report on discourse:
https://octave.discourse.group/t/run-fun-092421-undefined-near-line-1-column-1/1634/5

Markus Mützel <mmuetzel>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by siko1056 (Posted a comment)
  • -email is unavailable- added by mmuetzel (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only group members can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-11-03 siko1056 StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2021-09-24 mmuetzel StatusConfirmed Ready For Test
    2021-09-24 mmuetzel Summary&quot;rmpath&quot; can be used to remove the current path from the load path "rmpath" can be used to remove the current directory "." from the load path

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code