drush-ops/drush — pull request #179 by bleen (2013-10-03 20:20:50+00:00)
Title: Using a standard array_merge for alias records with the same #name

This is *a* solution for #146, though I dont think it is *the* solution.

Basically, in my case the ```$result``` and ```$one_result``` do not have sub arrays for any of their values, thus negating the need to do a (partial) recursive merge by using ```_sitealias_array_merge()```. I feel like a zillion other people would be having this problem, but I dont think I am doing anything particularly exotic in my alias file:
```php
/* ========================== L O C A L =================================== */
$aliases['local'] = array(
'parent' => '@parent',
'env' => 'local',
'ssh-options' => '-o StrictHostKeyChecking=no',
'sites-subdir' => 'default',
'uri' => 'http://local.mysite',
);

/* ============================== R E M O T E ============================== */
$aliases['stage'] = array(
'parent' => '@mysite.local',
'env' => 'stage',
'remote-user' => 'myuser',
'remote-host' => 'mysite.com',
'path-aliases' => array(
'%drush-script' => '/home/myuser/pear/drush',
'%dump-dir' => '/home/user/dumps'
),
'root' => '/home/myuser/sites/stage.mysite.com/docroot',
'uri' => 'http://stage.mysite.com',
);

$aliases['prod'] = array(
'parent' => '@mysite.stage',
'env' => 'prod',
'root' => '/home/myuser/sites/mysite.com/docroot',
'uri' => 'http://prod.mysite.com',
);
```