Euphoria Ticket #484: wildcard_file is obsolete, remove

It conforms to OLD DOS behavior, not even new cmd.exe behavior. It will not match files properly like any other current command. Examples:

wildcard_file("*", "john.txt")

returns false. dir *, copy *, del *, rm *, ls *, cp *, xcopy * all work with john.txt. After IRC discussions, we learned the . was added in old DOS days and that this method is very DOS centric, thus should be removed as all the other DOS stuff has been removed.

dir("*") fails to work as most people expect because of this problem, thus dir() should be updated to use wildcard_match() instead of wildcard_file()

Details

Type: Bug Report Severity: Normal Category: Library Routine
Assigned To: jeremy Status: Fixed Reported Release: 4464
Fixed in SVN #: 4471 View VCS: 4471 Milestone: 4.0.0RC2

1. Comment by jeremy Dec 03, 2010

Fixed, all instances of wildcard_file have been updated to use wildcard:is_match instead.

Search



Quick Links

User menu

Not signed in.

Misc Menu