bugGNU Octave - Bugs: bug #59689, `dir` command includes file name...

 
 

bug #59689: `dir` command includes file name in field 'folder'

Submitter:  - <_228358>
Submitted:  Tue 15 Dec 2020 12:53:44 PM UTC
   
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Incorrect Result
Status:  Fixed Assigned to:  None
Originator Name:  Friedhelm Krumm Open/Closed:  * Closed
Release:  * 6.1.0 Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

Sun 20 Dec 2020 02:48:37 PM UTC, comment #5: 

Works for me now.

Closing as fixed.

Markus Mützel <mmuetzel>
Group administrator
Tue 15 Dec 2020 04:11:31 PM UTC, comment #4: 

Thank you for elaborating.
This should be fixed with this change:
https://hg.savannah.gnu.org/hgweb/octave/rev/3a15c18c705f

Marking as ready for test.

Markus Mützel <mmuetzel>
Group administrator
Tue 15 Dec 2020 02:04:31 PM UTC, comment #3: 

comment #2:

> I am not the OP, but I think his point is that list.folder
> should not contain the file name. I.e.:
>


> octave:1> x = dir("rotate3d.m")
> x =
>
>   scalar structure containing the fields:
>
>     name = rotate3d.m
>     folder = /home/dima/src/octave/scripts/plot/util/rotate3d.m
>     date = 02-Sep-2020 08:35:32
>     bytes = 3292
>     isdir = 0
>     datenum = 7.3804e+05
>     statinfo =
>
>       scalar structure containing the fields:
>
>         dev = 66306
>         ino = 2.8317e+07
>         mode = 33204
>         modestr = -rw-rw-r--
>         nlink = 1
>         uid = 1001
>         gid = 1001
>         rdev = 0
>         size = 3292
>         atime = 1.6080e+09
>         mtime = 1.5991e+09
>         ctime = 1.5999e+09
>         blksize = 4096
>         blocks = 8
>


>
> The expectation here is that
>
> folder = /home/dima/src/octave/scripts/plot/util
>
> I do not know WWMD and reading docs does not make it clear to me.
>
> Dmitri.
> --
>
>
>


comment #1:

> Sorry. I couldn't understand which error you were describing.
> Could you please show an example of which command you are using, which result you see, and which result you expected?

- <_228358>
Tue 15 Dec 2020 02:01:30 PM UTC, comment #2: 

I am not the OP, but I think his point is that list.folder
should not contain the file name. I.e.:


octave:1> x = dir("rotate3d.m")
x =

  scalar structure containing the fields:

    name = rotate3d.m
    folder = /home/dima/src/octave/scripts/plot/util/rotate3d.m
    date = 02-Sep-2020 08:35:32
    bytes = 3292
    isdir = 0
    datenum = 7.3804e+05
    statinfo =

      scalar structure containing the fields:

        dev = 66306
        ino = 2.8317e+07
        mode = 33204
        modestr = -rw-rw-r--
        nlink = 1
        uid = 1001
        gid = 1001
        rdev = 0
        size = 3292
        atime = 1.6080e+09
        mtime = 1.5991e+09
        ctime = 1.5999e+09
        blksize = 4096
        blocks = 8


The expectation here is that

folder = /home/dima/src/octave/scripts/plot/util

I do not know WWMD and reading docs does not make it clear to me.

Dmitri.
--



Dmitri A. Sergatskov <dasergatskov>
Tue 15 Dec 2020 01:50:53 PM UTC, comment #1: 

Sorry. I couldn't understand which error you were describing.
Could you please show an example of which command you are using, which result you see, and which result you expected?

Markus Mützel <mmuetzel>
Group administrator
Tue 15 Dec 2020 12:53:44 PM UTC, original submission:  

I am not sure whether or not this is a real bug, but it turned out that as compared to release 5.2.0 the dir command has changed its behaviour. E.g. list=dir('*.m') now returns folder information (list.folder) the elements of which also comprise the file name.

- <_228358>

 

(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 dasergatskov (Posted a comment)
  • -email is unavailable- added by mmuetzel (Posted a comment)
  • -email is unavailable- added by _228358 (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 6 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2020-12-20 mmuetzel StatusReady For Test Fixed
        Open/ClosedOpen Closed
    2020-12-15 mmuetzel StatusNeed Info Ready For Test
        Operating SystemMicrosoft Windows Any
        Summarydir command `dir` command includes file name in field 'folder'
    2020-12-15 mmuetzel StatusNone Need Info

    Back to the top

    Powered by Savane 3.13-02a9.
    Corresponding source code