Hi!

When I run following command against multi-site drupal setup:

drush -r /var/www/droot site-alias @sites --short

I got quirky result that I couldn't use in the scripts without some modeling:

.var.www.droot#example0.com
.var.www.droot#example1.com
.var.www.droot#example2.com
.var.www.droot#example3.com
.var.www.droot#example4.com

Is this wanted behaviour / output, or maybe a bug?

It would be really nice to have cleaner output, something like this:

example0.com
example1.com
example2.com
example3.com
example4.com

This is also present when not using --short option e.g.

$aliases['.var.www.droot#example.com'] = array (
  'uri' => 'example.com',
  'root' => '/var/www/droot',
);

Also not useful for quick creating aliases by c/p-ing above output into aliases.drushrc.php file..

Comments

greg.1.anderson’s picture

Version: » 8.x-6.x-dev
Status: Active » Closed (won't fix)
Issue tags: +Needs migration

This issue was marked closed (won't fix) because Drush has moved to Github.

If desired, you may copy this bug to our Github project and then post a link here to the new issue. Please also change the status of this issue to closed (duplicate).

Please ask support questions on Drupal Answers.

greg.1.anderson’s picture

Issue summary: View changes

Minor fixs..