docs: wrap quotes around commands that use the caret symbol#7237
Conversation
rfay
left a comment
There was a problem hiding this comment.
Thanks so much for studying this and then updating more than just the drupal example! I note that we already had this for laravel, I think we stumbled over it years ago for PowerShell (which also uses ^ as a special character). But I can't believe with all the zsh usage over the years we haven't had a mention on a stumble on this.
I'll add a commit to make the quickstart tests work the same.
Wrap quotes around commands that use the caret symbol to prevent ZSH globbing.
|
Added quickstart tests and rebased |
rfay
left a comment
There was a problem hiding this comment.
Looks good to me, passed quickstart tests.
rpkoller
left a comment
There was a problem hiding this comment.
adding the double quotes looks good to me. the fail save approach.
|
Oh that's what causes it! Thank you for raising this. I occasionally stumble on this but never bothered to find out what part of the command causes it - I just quoted all the args and moved on. |
The Issue
When using Zsh, the
composer create ...command will fail if using a caret symbol to specify the project version.Drupal Slack conversation: https://drupal.slack.com/archives/C5TQRQZRR/p1745774586216839
Zsh issue:
How This PR Solves The Issue
Wrapping the project and version number in quotes will prevent Zsh from globbing, and allow the command to execute as expected.
Manual Testing Instructions
Review https://ddev--7237.org.readthedocs.build/en/7237/users/quickstart/