bugGNU Octave - Bugs: bug #48925, problem with m-files in private...

 
 

bug #48925: problem with m-files in private directory

Submitted by:  Avinoam Kalma <avinoam>
Submitted on:  Sat 27 Aug 2016 07:04:57 PM UTC  
 
Category:  Interpreter Severity:  2 - Minor
Priority:  3 - Low Item Group:  Incorrect Result
Status:  Confirmed Assigned to:  None
Originator Name:  Avinoam Open/Closed:  Open
Release:  4.2.0 Operating System:  Any

Add a New Comment(Rich Markup)
   

You are not logged in

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

 

( Jump to the original submission)

Wed 16 Nov 2016 08:52:42 PM UTC, comment #8:

Re-tagging as 4.2.0

Avinoam Kalma <avinoam>
Project Member
Thu 15 Sep 2016 09:23:21 PM UTC, comment #7:

I can confirm this on Linux as well. The problem seems to be that although PATH has the current directory ('.') on it, files which are returned are being filtered out because they match the name of another PATH entry with "/private" appended to it.

As a workaround, instead of changing directory into the private dir, just add the correct dir to your path.

Rik <rik5>
Project Administrator
Wed 14 Sep 2016 02:47:18 PM UTC, comment #6:

The problem is that there is a compare_plot_demos.m file in that library.
This bug still exists in 4.2.0-rc1

Avinoam Kalma <avinoam>
Project Member
Wed 14 Sep 2016 01:49:53 PM UTC, comment #5:

So it is working as expected, correct? Maybe this has been fixed in 4.2.0-rc1.

Now just make sure that there is a compare_plot_demos.m file in

and it should work.

Bernardo Sulzbach <mafagafogigante>
Tue 13 Sep 2016 08:47:22 PM UTC, comment #4:

The results:

Avinoam Kalma <avinoam>
Project Member
Tue 13 Sep 2016 09:45:18 AM UTC, comment #3:

Would you care to post the result of the following (I don't have a Windows box to test it myself):

Bernardo Sulzbach <mafagafogigante>
Sat 27 Aug 2016 07:10:52 PM UTC, comment #2:

Sorry for the noise: a full corrected report:

For example: Octave starts in directory
D:\Octave\Octave-4.1.0+\share\octave\4.1.0+\m\testfun. If I use "cd private" Octave does not recognize the m-files in the private directory:

In 4.0.3:

in 4.0.1+ (cs 52c205a0ad88
52c205a0ad88):

It looks like octave is searching in for the files in the folder private\private. Note that the error in 4.0.1 is much less informative.

If Octave starts in the private directory, everything is OK.

Tested with MXE-Octave on Win-10 machine.

Avinoam Kalma <avinoam>
Project Member
Sat 27 Aug 2016 07:06:11 PM UTC, comment #1:

Correction: Octave starts in directory D:\Octave\Octave-4.1.0+\share\octave\4.1.0+\m\testfun

Avinoam Kalma <avinoam>
Project Member
Sat 27 Aug 2016 07:04:57 PM UTC, original submission:

For example: Octave starts in directory D:\Octave\Octave-4.1.0+\share\octave\4.1.0+\m\plot\util\private. If I use "cd private" Octave does not recognize the m-files in the private directory:

In 4.0.3:

in 4.0.1+ (cs 52c205a0ad88):

Avinoam Kalma <avinoam>
Project 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 rik5 (Posted a comment)
  • -email is unavailable- added by mafagafogigante (Posted a comment)
  • -email is unavailable- added by avinoam (Submitted the item)
  • -email is unavailable- added by avinoam
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2016-11-16 avinoam Release4.2.0-rc1 => 4.2.0
    2016-09-15 rik5 Severity3 - Normal => 2 - Minor
        Priority5 - Normal => 3 - Low
        StatusNone => Confirmed
        Operating SystemMicrosoft Windows => Any
    2016-09-13 avinoam Release4.0.3 => 4.2.0-rc1
    2016-08-27 avinoam Carbon-Copy- => Added -email is unavailable-

    Back to the top


    Powered by Savane 3.3