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

Submitter:  Mike Miller <mtmiller>
Submitted:  Tue 23 Aug 2016 11:19:35 PM UTC
   
 
Category:  Interpreter Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  Invalid / Not an Octave Bug Assigned to:  None
Originator Name:  Open/Closed:  * Closed
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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

    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 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 / Not an Octave Bug
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code