Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

cannot use 'drush upwd' to create a password containing spaces #36

Closed
byrond opened this issue May 4, 2017 · 7 comments
Closed

cannot use 'drush upwd' to create a password containing spaces #36

byrond opened this issue May 4, 2017 · 7 comments

Comments

@byrond
Copy link
Contributor

byrond commented May 4, 2017

Not sure if this is anecdotal or not, but running the-vagrant on Ubuntu 16.04.1, I can't set a password containing spaces using drush. It works fine through the UI. For example:

drush user-password admin --password="correct horse battery staple"

Note: the command above claims it succeeds, but attempting to login with the password fails. Setting a password that contains no spaces using the command above works correctly.

@becw
Copy link
Member

becw commented Sep 26, 2017

Does this work with drush on other environments?

@byrond
Copy link
Contributor Author

byrond commented Oct 6, 2017

@becw I seem to remember it does work on other environments, but I will double-check and report back. I will also make sure I can reproduce the issue on the-vagrant since it has been a while since I reported it.

@becw
Copy link
Member

becw commented Jun 27, 2018

I think this affects drush sqlq and drush php-eval as well. @damontgomery found that it was related to the drush wrapper script installed by the-vagrant: https://github.com/palantirnet/the-vagrant/blob/develop/bin/the-vagrant-installer

It may be possible to remove this wrapper now that we add vendor/bin/ to the $PATH -- which is very convenient but still somewhat blunt, IMO, since what happens when you're running multiple projects on the same machine? We often do this when migrating from a D6 or D7 site to a D8 site.

@damontgomery
Copy link

damontgomery commented Jun 27, 2018 via email

@becw
Copy link
Member

becw commented Jul 24, 2018

I wonder if it would make more sense to copy the drush.wrapper script from the drush examples and use that to specify our drushrc.php -- since that's the unique thing this script is doing. As you point out, Drush itself will handle the other part of this (finding the project-specific drush).

In the meantime, this PR #53 also solves this issue.

@damontgomery
Copy link

I'm not sure if this helps, but I found the following about drush.yml as a replacement for drushrc.php in Drush 9. drush-ops/drush#3027

@becw
Copy link
Member

becw commented Jul 30, 2018

I've merged #53 as a fix for this issue. It will be included in the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants