File tree Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Expand file tree Collapse file tree 1 file changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -139,16 +139,16 @@ environment variables using the second argument of the ``run()``,
139139 // On both Unix-like and Windows
140140 $process->run(null, ['MESSAGE' => 'Something to output']);
141141
142- To help write command lines that are independent from the operating system,
143- you can also write the above code as such ::
142+ If you prefer to create portable commands that are independent from the
143+ operating system, you can write the above command as follows ::
144144
145- // On both Unix-like and Windows
145+ // works the same on Windows , Linux and macOS
146146 $process = Process::fromShellCommandline('echo "${:MESSAGE}"');
147147
148- This requires using a syntax that is specific to the component: when enclosing
149- a variable name into ``"{$: `` and ``}" `` exactly, the process object will
150- replace it with its escaped value, or will fail if the variable is not found in
151- the list of environment variables attached to the command.
148+ Portable commands require using a syntax that is specific to the component: when
149+ enclosing a variable name into ``"{$: `` and ``}" `` exactly, the process object
150+ will replace it with its escaped value, or will fail if the variable is not
151+ found in the list of environment variables attached to the command.
152152
153153.. versionadded :: 4.4
154154
You can’t perform that action at this time.
0 commit comments