bugGNU Octave - Bugs: bug #48880, PKG_ADD and PKG_DEL are not...


bug #48880: PKG_ADD and PKG_DEL are not executed when changing directory

Submitted by:  Mike Miller <mtmiller>
Submitted on:  Tue 23 Aug 2016 11:19:35 PM UTC  
Category:  Interpreter Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Invalid Assigned to:  None
Originator Name:  Open/Closed:  Closed
Release:  dev Operating System:  Any

Add a New Comment(Rich Markup)

You are not logged in

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


Wed 19 Sep 2018 09:59:49 PM UTC, comment #3:

Closing, I have no objection to the current behavior if it was by design.

Mike Miller <mtmiller>
Project Administrator
Thu 25 Aug 2016 02:40:51 PM UTC, comment #2:

Yeah. Maybe we should revisit the decision to allow arbitrary code in PKG_{ADD,DEL} files and per-directory .octaverc files (if we still have those)?

John W. Eaton <jwe>
Project Administrator
Thu 25 Aug 2016 12:28:07 PM UTC, comment #1:

I was under the impression that this was by design and there was a bug report, or email discussion, against it. The idea is that such extension would make it easy to accidentally call a PKG_ADD file (for example, such file in the home directory which could be exploited).

Carnë Draug <carandraug>
Project Member
Tue 23 Aug 2016 11:19:35 PM UTC, original submission:

The current directory "." is always in the load path. When the current directory is changed, new function files and compiled functions in oct files are added to and removed from the symbol table automatically. But if the new or old pwd contains a PKG_ADD or PKG_DEL file, it is not handled like it normally would be with addpath/rmpath.

This may be an abuse of the function, open to input from others, but it seems to me to be a logical extension of the PKG_ADD/PKG_DEL feature.

Mike Miller <mtmiller>
Project Administrator


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

Attach Files:

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 jwe (Posted a comment)

    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 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-09-19 mtmiller Carbon-CopyRemoved 80942 => -
    2018-09-19 mtmiller StatusNeed Info => Invalid
        Open/ClosedOpen => Closed

    Back to the top

    Powered by Savane 3.3