Explorar o código

Clarify PATH modification, refs #5970

Jordi Boggiano %!s(int64=8) %!d(string=hai) anos
pai
achega
da097aa6fc
Modificáronse 1 ficheiros con 4 adicións e 2 borrados
  1. 4 2
      doc/articles/scripts.md

+ 4 - 2
doc/articles/scripts.md

@@ -210,8 +210,10 @@ simply running `composer test`:
 }
 ```
 
-> **Note:** Composer's bin-dir is pushed on top of the PATH so that binaries
-> of dependencies are easily accessible as CLI commands when writing scripts.
+> **Note:** Before executing scripts, Composer's bin-dir is temporarily pushed
+> on top of the PATH environment variable so that binaries of dependencies
+> are easily accessible. In this example no matter if the `phpunit` binary is
+> actually in `vendor/bin/phpunit` or `bin/phpunit` it will be found and executed.
 
 ## Referencing scripts