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

 
 

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

Submitter:  Philip Nienhuis <philipnienhuis>
Submitted:  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
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group administrator
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>
Group 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>
Group administrator
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>
Group 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)
  •  

    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 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 *.&lt;ext&gt;does not work on Windows dir subdir/*.<ext> does not work on Windows

    Back to the top

    Powered by Savane 3.13-758e.
    Corresponding source code