bugGNU Octave - Bugs: bug #39357, "dir" function return...

 
 

bug #39357: "dir" function return empty names

Submitted by:  None
Submitted on:  Fri 28 Jun 2013 01:53:00 PM UTC  
 
Category: Octave FunctionSeverity: 3 - Normal
Priority: 5 - NormalItem Group: Incorrect Result
Status: InvalidAssigned to: None
Originator Name: Georg StillfriedOriginator Email: -unavailable-
Open/Closed: ClosedRelease: 3.6.4
Operating System: GNU/Linux

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

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

 

(Jump to the original submission Jump to the original submission)

Wed 24 Jul 2013 03:11:29 PM UTC, comment #7:

Good to see it had an answer. Closing report.

Rik <rik5>
Project Administrator
Wed 24 Jul 2013 10:00:31 AM UTC, comment #6:

Ah, now I found the cause of the problem. It is not a bug in Octave.

I have an own function called index.m which overloads Octave's index.m, but does something different.

After renaming my function it worked fine.

Thanks again for your help!

Anonymous
Wed 24 Jul 2013 09:44:34 AM UTC, comment #5:

Thank you very much for your answers.

I tried what you suggested and it seems that the problem is in the fileparts function:

Georg

Anonymous
Wed 24 Jul 2013 09:43:16 AM UTC, comment #4:

Thank you very much for your answers.

I tried what you suggested and it seems that the problem is in the fileparts function:

Anonymous
Wed 17 Jul 2013 09:52:33 PM UTC, comment #3:

Since we can't reproduce it I think you might need to try on your own. The 'dir' function is an m-file which means it is written in Octave's own scripting language and you can step through the code line-by-line with the debugger until you notice something odd.

Try the following

You can just hit <RETURN> to keep executing dbnext and advance line by line.

Rik <rik5>
Project Administrator
Tue 02 Jul 2013 01:26:34 PM UTC, comment #2:

Yes, that is all zeros.

Anonymous
Fri 28 Jun 2013 02:37:25 PM UTC, comment #1:

Can't reproduce.

Can you please confirm that you really are getting empty strings there instead of some display issue?

What does the following do?

Is that all zeros?

Jordi GutiƩrrez Hermoso <jordigh>
Project Administrator
Fri 28 Jun 2013 01:53:00 PM UTC, original submission:

The "dir" function is supposed to list the files within a directory. It seems to find the files, and to properly store the other attributes like date into a variable. However, the stored or displayed names are empty.

Example:
+verbose+
octave:82> ls
Test1_Ikine_two_ortho_axes.m
octave:83> dir

octave:84> a = dir
a =

3x1 struct array containing the fields:

name
date
bytes
isdir
datenum
statinfo

octave:85> a.name
ans =
ans =
ans =
octave:86> a.date
ans = 28-Jun-2013 11:55:09
ans = 28-Jun-2013 11:54:54
ans = 28-Jun-2013 12:08:07
-verbose-

Anonymous

 

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

Attach File(s):
   
   
Comment:
   

No files currently attached

 

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 jordigh (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
    Wed 24 Jul 2013 03:11:29 PM UTCrik5StatusWorks For Me=>Invalid
      Open/ClosedOpen=>Closed
    Fri 28 Jun 2013 02:37:25 PM UTCjordighStatusNone=>Works For Me

    Back to the top


    Powered by Savane 3.1-cleanup