New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
wp plugin delete <plugin-name> not working if path has a space or & in it #135
Comments
I have looked into the code to see how this is done. Strangely, while @danielbachhuber Looking through the file history I fail to find a reason why this diverging behavior exists other than for historical reasons. Do you have additional insight here? |
Note: Fixing the above bug is very probably only a matter of properly quoting the folder. However, I'd like to find out first whether we shouldn't rather move to using the Core's built-in |
@schlessera The It looks like this was originally changed in wp-cli/wp-cli@86416ae |
Ah, thanks, this linked to the missing piece: wp-cli/wp-cli#109 ( |
Proposed solution is to pass the
|
If the path to a WordPress install has ' ' or '&' in the pathname, then the command 'wp plugin delete ' does not work. Note that list, install, activate, deactivate all work as expected. Delete says it deletes it, but it doesn't. Not sure if other characters and/or commands have the same issue.
example
using a fresh install of WordPress
if ABSPATH defined: '/Users/userName/development sites/myTestSite/'
the following command will fail to delete the plugin.
I can reproduce it using a ' ' or a '&'. I'm sure there are others.
commands that work:
Command Line Log
wpBugTest.txt
The text was updated successfully, but these errors were encountered: