Closed (fixed)
Project:
Drush
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Apr 2010 at 21:20 UTC
Updated:
4 Sep 2010 at 10:50 UTC
TNL ~> drush -r /usr/local/www/dividential.com/www/ @sites status
You are about to execute 'status' on all of the following targets:
/usr/local/www/dividential.com/www#fin-n-feather.com
/usr/local/www/dividential.com/www/#rf3.therenolimits.com
/usr/local/www/dividential.com/www#distinctivefineartglass.com
/usr/local/www/dividential.com/www/#distinctivefineartglass.com
/usr/local/www/dividential.com/www#oldtowncoffeeeureka.com
/usr/local/www/dividential.com/www#benjaminarms.com
/usr/local/www/dividential.com/www/#benjaminarms.com
[…]
Continue? (y/n):
So basically it lists every site twice, once with a slash at the end of the path and once without, in whatever order it's finding them. If I answer with y, it will indeed run the command twice on each site, in order. Leaving the slash off the end of the -r parameter causes Drush to behave as expected.
I tried various tweaks to correct this behavior, but everything I tried either didn't work or would cause Drush to only execute on the default site, as if the @sites alias were being ignored - so I guess I don't know enough about Drush's guts at this point to fix it myself.
Comments
Comment #1
greg.1.anderson commentedI could not reproduce this. As a workaround, try the relative alias syntax:
drush /usr/local/www/dividential.com/www/@sites status. That should work.Comment #2
Garrett Albright commentedWell, the workaround I'm using is just not to have a slash at the end of the
-rparam, so I'm doing okay in that regard.I'm surprised you can't replicate it, though. I just gave it another try and it's still happening. Can you get it to happen if you do it this way?:
php -f /path/to/drush.php -- -r /path/to/drupal/ @sites statusComment #3
roball commentedAlso cannot reproduce this behaviour with Drush 3.3. Thus it seems the problem has already been fixed.