bugGNU Octave - Bugs: bug #59252, dir subdir/*.<ext> does not...

 
 

bug #59252: dir subdir/*.<ext> does not work on Windows

Submitted by:  Philip Nienhuis <philipnienhuis>
Submitted on:  Mon 12 Oct 2020 12:37:39 PM UTC  
 
Category:  Octave Function Severity:  3 - Normal
Priority:  5 - Normal Item Group:  Regression
Status:  Fixed Assigned to:  None
Originator Name:  Philip Nienhuis Open/Closed:  Closed
Release:  dev Operating System:  Microsoft Windows

Add a New Comment (Rich Markup)
   

You are not logged in

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

 

Sun 18 Oct 2020 08:00:33 PM UTC, comment #4: 

Works now, thanks for the fix.
Sorry for a late response.

Closing report.

Philip Nienhuis <philipnienhuis>
Project Member
Tue 13 Oct 2020 02:35:49 PM UTC, comment #3: 

I pushed the following change that hopefully fixes this regression:
https://hg.savannah.gnu.org/hgweb/octave/rev/caf577e7ef43

Marking as ready for test.

Markus Mützel <mmuetzel>
Project Member
Mon 12 Oct 2020 03:06:14 PM UTC, comment #2: 

Thank you for the quick confirmation.

cd'ing to the directory is no help, I hit this when loading the io package; one of the init scripts didn't work.
I can work around the limitations, for the rest it's just a lot of noise on the screen.

No worries, this is the dev version and that exists to occasionally get broken isn't it :-)

Philip Nienhuis <philipnienhuis>
Project Member
Mon 12 Oct 2020 01:43:18 PM UTC, comment #1: 

Confirmed.
This is probably caused by this change:
https://hg.savannah.gnu.org/hgweb/octave/rev/4e64416772f1

It looks like that broke _wglob_ with directories.
It still works if you first `cd` to that directory and call `dir ("*.ext")` there.

Also wildcards in the directory part aren't working at the moment.
I'll have a look at how this could be fixed.

Markus Mützel <mmuetzel>
Project Member
Mon 12 Oct 2020 12:37:39 PM UTC, original submission:  

With a fresh crossbuild, hg id 41c54377d67f ("maint: remove unnecessary checks ..."

>> dir java
.                                 jxl.jar
..                                odfdom-java-0.8.8-incubating.jar
OpenXLS-10.jar                    poi-4.0.0.jar
backup                            poi-ooxml-4.0.0.jar
commons-collections4-4.2.jar      poi-ooxml-schemas-4.0.0.jar
dom4j-1.6.1.jar                   xercesImpl-2.11.0.jar
gwt-servlet-deps.jar              xml-apis.jar
jOpenDocument-1.4rc2.jar          xmlbeans-3.0.1.jar

>> dir java/*.jar
warning: dir: 'lstat (OpenXLS-10.jar)' failed: No such file or directory
warning: called from
    dir at line 128 column 9

warning: dir: 'lstat (commons-collections4-4.2.jar)' failed: No such file or directory
warning: called from
    dir at line 128 column 9

warning: dir: 'lstat (dom4j-1.6.1.jar)' failed: No such file or directory
warning: called from
    dir at line 128 column 9

:
:

warning: dir: nonexistent directory 'java/*.jar'
warning: called from
    dir at line 189 column 5

>>

This used to work until ~4 days ago with dev Octave and with the 6.0.90 release candidate:

>> dir java
.                                 jxl.jar
..                                odfdom-java-0.8.8-incubating.jar
OpenXLS-10.jar                    poi-4.0.0.jar
backup                            poi-ooxml-4.0.0.jar
commons-collections4-4.2.jar      poi-ooxml-schemas-4.0.0.jar
dom4j-1.6.1.jar                   xercesImpl-2.11.0.jar
gwt-servlet-deps.jar              xml-apis.jar
jOpenDocument-1.4rc2.jar          xmlbeans-3.0.1.jar

>> dir java/*.jar
OpenXLS-10.jar                    poi-4.0.0.jar
commons-collections4-4.2.jar      poi-ooxml-4.0.0.jar
dom4j-1.6.1.jar                   poi-ooxml-schemas-4.0.0.jar
gwt-servlet-deps.jar              xercesImpl-2.11.0.jar
jOpenDocument-1.4rc2.jar          xml-apis.jar
jxl.jar                           xmlbeans-3.0.1.jar
odfdom-java-0.8.8-incubating.jar
>>

Philip Nienhuis <philipnienhuis>
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 mmuetzel (Posted a comment)
  • -email is unavailable- added by philipnienhuis (Submitted the item)
  •  

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

    Date Changed by Updated Field Previous Value => Replaced by
    2020-10-18 philipnienhuis StatusReady For Test => Fixed
        Open/ClosedOpen => Closed
    2020-10-13 mmuetzel StatusConfirmed => Ready For Test
    2020-10-12 mmuetzel StatusNone => Confirmed
        Summarydir *.<ext>does not work on Windows => dir subdir/*.<ext> does not work on Windows

    Back to the top


    Powered by Savane 3.5