Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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
Comment #1
greg.1.anderson CreditAttribution: greg.1.anderson commentedI guess you are not using bash. Try:
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?
Comment #2
moshe weitzman CreditAttribution: moshe weitzman commentedComment #3
greg.1.anderson CreditAttribution: greg.1.anderson commentedFixed in 8.x-6.x and 7.x-5.x.