The following shell alias command fails with 'Unknown option: --pipe). ...'
$options['shell-aliases']['site-reset'] = 'site-install --account-pass=admin --site-name=$(drush status database_name --pipe)';

The below example command in example.drushrc.php fails in the same way.
$options['shell-aliases']['dis-all'] = '!drush -y dis $(drush pml --status=enabled --type=module --no-core --pipe)';

Comments

greg.1.anderson’s picture

Component: User Commands » Documentation
Category: bug » task

I guess you are not using bash. Try:

$options['shell-aliases']['site-reset'] = 'site-install --account-pass=admin --site-name=`drush status database_name --pipe`';

Perhaps we should change the shell alias examples to be more broadly compatible with other shells, just as we did with the drush script.

dis-all is from example.drushrc.php; where is site-reset from?

moshe weitzman’s picture

Title: Unknown option: --pipe) » Example shell aliases should use universal syntax
Version: 7.x-5.7 »
greg.1.anderson’s picture

Version: » 8.x-6.x-dev
Status: Active » Fixed

Fixed in 8.x-6.x and 7.x-5.x.

Status: Fixed » Closed (fixed)

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