search-replace-command icon indicating copy to clipboard operation
search-replace-command copied to clipboard

I can not replace a word with several hyphens in its name

Open wppunk opened this issue 5 years ago • 3 comments

I use: wp search-replace "--old-word" "new word"

Error: unknown --old-word parameter

wppunk avatar Feb 17 '20 14:02 wppunk

Hi @mdenisenko Try wp search-replace '--old-word' "new word"

wojsmol avatar Feb 17 '20 14:02 wojsmol

I have tried this. Same error.

wppunk avatar Feb 17 '20 14:02 wppunk

I am able to reproduce this issue in my local environment and it does seem to be a bug. Even trying to escape the " and ' it does not work. @schlessera I believe that we could set this one as a bug, and I'm more than happy to work on this one, so feel free to assign me to this issue.

marksabbath avatar Aug 05 '20 20:08 marksabbath