modify Drush uli returned URL string of to include port? I want to modify a variable (preferably in a Bash Script format) because my PHP environment requires a port number.

To open a browser in Drush, one executes 

$ drush uli


In a script: 

$ bash-3.2$ VAR='drush uli'; echo ${VAR}; ${VAR}


outputs:


  drush uli


http:/ /website-7-26-2-17-res124725.local/user/reset/1/1393147909/zMiquSr_ikA7xdp7kA3g4CvTGd82mWsVdqEiMCs/login


Can I modify that URL before Drush opens the browser?

Can I stop it from executing and manipulate the URL in a Bash script?
You can create settings.local.php with your development base url:

$base_url = 'http://website-7-26-2-17-res124725.local:8888';  // NO trailing slash!


Drush just uses Drupal's url() function to build user one-time-login link.