Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
command -v
1 parent b6d7264 commit 851f2f0Copy full SHA for 851f2f0
src/Symfony/Component/Process/ExecutableFinder.php
@@ -68,7 +68,7 @@ public function find(string $name, ?string $default = null, array $extraDirs = [
68
}
69
70
71
- $command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v';
+ $command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v --';
72
if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && @is_executable($executablePath)) {
73
return $executablePath;
74
0 commit comments