-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
Fix: Script with glob option doesn't work on Windows #67862
Conversation
Size Change: 0 B Total Size: 1.83 MB ℹ️ View Unchanged
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message.
To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
It's one of those moment where I appreciate the backward compatibility policy followed by WordPress 😄 I'll give it a spin on macOS. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems to work correctly for me, so if it works correctly on Windows I'm happy 🙂
Thanks for the review! I would like to merge this PR as it is working in my environment 👍 |
I'm happy to test with |
Everything works correctly on my end when using scripts that execute |
Co-authored-by: t-hamano <[email protected]> Co-authored-by: sirreal <[email protected]>
Follow-up to #67708, #67829, #67833
What?
I have found that scripts with the glob option, although they don't cause errors, don't actually delete the files on Windows OS.
Why?
Perhaps single quotes have a special meaning in the Windows OS shell.
How?
To eliminate these errors, I use escaped double quotes in all commands.
For thefixtures:clean
script, I tried not to use regular expressions so that it would work on Windows OS.Testing Instructions
Note that the order in which files are displayed by the ls command may vary depending on your operating system.
clean:package-types, clean:packages
print
print
print
fixtures:clean
print
print