bugGNU Octave - Bugs: bug #49334, addpath(pwd) removes '.' from path

 
 

bug #49334: addpath(pwd) removes '.' from path

Submitted by:  None
Submitted on:  Thu 13 Oct 2016 01:19:42 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: FixedAssigned to: None
Originator Name: Houtan BastaniOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 4.2.0-rc2
Operating System: Mac OS

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

Thu 13 Oct 2016 03:27:10 PM UTC, comment #1:

Happily, this has already been fixed. See bug #49184. The fix was made after the 4.2.0-rc2 release candidate and will be part of -rc3, or the final release.

Rik <rik5>
Project Administrator
Thu 13 Oct 2016 01:19:42 PM UTC, original submission:

Using `addpath(pwd)` to add the current working directory to the path removes '.' from the path. If you then change directories and run a `.m` file, Octave tells you that the file is undefined.

The following is a minimum working example to show the removal of '.' from the path and, further down, that Octave no longer finds a file that is in the current directory.

NB: I am using Octave 4.2.0-rc2 on OS X 10.12 installed through Homebrew, but I get the same bug on Octave 4.2.0-rc2 that I built myself on Debian Jessie.

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

Attached Files
file #38718:  bug.m added by None (239B - application/octet-stream - the above code in a .m file)

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by rik5 (Posted a comment)
  • -unavailable- added by None (Submitted the item)
  •  

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

    Only project members can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 3 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Thu 13 Oct 2016 03:27:10 PM UTCrik5StatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Thu 13 Oct 2016 01:19:42 PM UTCNoneAttached File-=>Added bug.m, #38718

    Back to the top


    Powered by Savane 3.1-cleanup1