I've only just spotted the new wildcard feature (eg "drush en views*" to enable views and all sub modules) which is a real timesaver. But there is one minor bug. The matching on the wildcard is a bit keen:

drush en date*

matches the date module and all sub-modules. But it also matches the "update" module. In regex terms, I suppose it's doing ".string" instead of "^string" when creating the list of modules on which to operate.

Comments

moshe weitzman’s picture

Hmmm. I can't get the wildcard to work for a string that matches the project name like views*. Thats because this test is FALSE: if (($wildcard = rtrim($project, '*')) !== $project) { . I don't really get how views* works for anyone. Once the project name bug is fixed, I agree that the match should be changed to 'starts with'.

jonhattan’s picture

Version: All-versions-3.1 »
Component: Code » PM (dl, en, up ...)
Assigned: Unassigned » jonhattan
Priority: Minor » Major
jonhattan’s picture

Status: Active » Needs review
StatusFileSize
new24.42 KB

@moshe I don't see the problem in #1. Attached a fix for #0

jonhattan’s picture

StatusFileSize
new779 bytes

woops! wrong patch

greg.1.anderson’s picture

StatusFileSize
new820 bytes

#4 works, but I suggest that the attached patch is easier to read. I don't really like the === 0 , stylistically speaking.

greg.1.anderson’s picture

Status: Needs review » Fixed

Actually, to avoid getting bogged down in bookkeeping over minor issues, I just committed this.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.