From 3934877efeec5dc6f57396e24bae74b5d0ea1827 Mon Sep 17 00:00:00 2001 From: Victor Bocharsky Date: Fri, 7 Feb 2020 15:29:05 +0200 Subject: [PATCH] Wrap version constaints that contain * with double quotes Some shells like ZSH require wrapping * with quotes, otherwise, it shows an error like: > zsh: no matches found: 2.2.* But single quotes may cause issues on Windows CMD --- doc/03-cli.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/03-cli.md b/doc/03-cli.md index eccafbcc0..ff0ff0ce3 100644 --- a/doc/03-cli.md +++ b/doc/03-cli.md @@ -190,7 +190,7 @@ If you do not want to choose requirements interactively, you can pass them to the command. ```sh -php composer.phar require vendor/package:2.* vendor/package2:dev-master +php composer.phar require "vendor/package:2.*" vendor/package2:dev-master ``` If you do not specify a package, composer will prompt you to search for a package, and given results, provide a list of matches to require. @@ -647,7 +647,7 @@ provide a version as third argument, otherwise the latest version is used. If the directory does not currently exist, it will be created during installation. ```sh -php composer.phar create-project doctrine/orm path 2.2.* +php composer.phar create-project doctrine/orm path "2.2.*" ``` It is also possible to run the command without params in a directory with an