bugGNU Octave - Bugs: bug #32181, addpath/rmpath and trailing filesep

 
 

bug #32181: addpath/rmpath and trailing filesep

Submitter:  Guillaume <gyom>
Submitted:  Wed 19 Jan 2011 06:02:01 PM UTC
   
 
Category:  None Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Guillaume Open/Closed:  * Closed
Release:  * dev Operating System:  * GNU/Linux
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 20 Jan 2011 01:20:04 PM UTC, comment #2: 

No compatibility issue but I found this warning was puzzling:


octave> addpath /local/
octave> rmpath /local
warning: rmpath: /local: not found


Thanks for the change.

Guillaume <gyom>
Thu 20 Jan 2011 08:26:53 AM UTC, comment #1: 

Why?  What trouble does it cause to leave them in?  Is this a compatibility issue?

In any case, I checked in the following change:

http://hg.savannah.gnu.org/hgweb/octave/rev/06cfda4c07e5

John W. Eaton <jwe>
Group administrator
Wed 19 Jan 2011 06:02:01 PM UTC, original submission:  

addpath/rmpath should remove any trailing filesep of input directory names.
For example,


addpath /local/dir1
addpath /local/dir1/


results in path:


/local/dir1
/local/dir1/
...


instead of only /local/dir1.

Guillaume <gyom>

 

(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)
  • -email is unavailable- added by gyom (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2011-01-20 jwe StatusNone Fixed
        Open/ClosedOpen Closed

    Back to the top

    Powered by Savane 3.14-79a4.
    Corresponding source code