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

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

Add a New Comment (Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project Member
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>
Project Member

 

(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 mmuetzel (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can add your encouragement to it.
    This task has 0 encouragements so far.

    Only project members can vote.

     

     

     

    Follow 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2021-09-24 mmuetzel StatusConfirmed => Ready For Test
    2021-09-24 mmuetzel Summary"rmpath" 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.7