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

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

[Octave-bug-tracker] [bug #61216] "rmpath" can be used to remove the cur


From: Markus Mützel
Subject: [Octave-bug-tracker] [bug #61216] "rmpath" can be used to remove the current path from the load path
Date: Fri, 24 Sep 2021 11:53:57 -0400 (EDT)
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.82 Safari/537.36 Edg/93.0.961.52

URL:
  <https://savannah.gnu.org/bugs/?61216>

                 Summary: "rmpath" can be used to remove the current path from
the load path
                 Project: GNU Octave
            Submitted by: mmuetzel
            Submitted on: Fri 24 Sep 2021 05:53:55 PM CEST
                Category: Interpreter
                Severity: 3 - Normal
                Priority: 5 - Normal
              Item Group: Missed Error or Warning
                  Status: Confirmed
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
                 Release: 6.3.0
         Discussion Lock: Any
        Operating System: Any

    _______________________________________________________

Details:

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




    _______________________________________________________

Reply to this item at:

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

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




reply via email to

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