bugGNU Octave - Bugs: bug #58332, pkg.m returns empty for...


bug #58332: pkg.m returns empty for 'local-list' in case of argument with leading tilde

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Thu 07 May 2020 09:23:52 PM UTC  
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  Closed
Release:  6.0.90 Operating System:  GNU/Linux

Add a New Comment (Rich Markup)

You are not logged in

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


Sat 09 May 2020 08:04:54 PM UTC, comment #4: 

Ah sorry I missed the word "stable" but it was there in fineprint on the first line of the mercurial log entry.

Philip Nienhuis <philipnienhuis>
Project Member
Sat 09 May 2020 06:57:25 PM UTC, comment #3: 

The changest was checked in on stable to begin with.  It was just recently pulled across to the development branch by Markus when he merged stable to default.

Rik <rik5>
Project Administrator
Sat 09 May 2020 11:06:17 AM UTC, comment #2: 

Could it be pushed on stable as well? after all it's an old plain bug, and no one has ever complained about it (although that could also be a counter-argument) so little risk for existing code Out There.

Anyway thx for pushing.

Philip Nienhuis <philipnienhuis>
Project Member
Sat 09 May 2020 03:06:24 AM UTC, comment #1: 

Looks fine.  I checked in the patch here https://hg.savannah.gnu.org/hgweb/octave/rev/3cffb5c059b4.

Marking as fixed and closing report.

Rik <rik5>
Project Administrator
Thu 07 May 2020 09:23:52 PM UTC, original submission:  

>> pkg 'local_list'
>> pkg 'local_list' ~/some_new_file
>> pkg 'local_list'


The culprit is in the case block after L.559 where tilde expansion seems to have been forgotten. As a consequence on L.574 canonicalize-file-name returns empty.
A patch will be uploaded once I have a bug number.

Philip Nienhuis <philipnienhuis>
Project Member


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

Attach Files:

Attached Files
file #49037:  pkg_tilde_expand.cset added by philipnienhuis (819B - application/octet-stream)


Depends on the following items: None found

Items that depend on this one: None found


Carbon-Copy List
  • -email is unavailable- added by rik5 (Posted a comment)
  • -email is unavailable- added by philipnienhuis (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 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-05-09 rik5 StatusPatch Submitted => Fixed
        Open/ClosedOpen => Closed
    2020-05-08 philipnienhuis Summarypkg.m returns empty for 'local-list' in case of argment with leading tilde => pkg.m returns empty for 'local-list' in case of argument with leading tilde
    2020-05-07 philipnienhuis Attached File- => Added pkg_tilde_expand.cset, #49037
        StatusNone => Patch Submitted

    Back to the top

    Powered by Savane 3.5