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 d352e98 commit 2b73f0cCopy full SHA for 2b73f0c
src/Symfony/Component/Process/ExecutableFinder.php
@@ -72,7 +72,7 @@ public function find(string $name, ?string $default = null, array $extraDirs = [
72
}
73
74
75
- $command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v';
+ $command = '\\' === \DIRECTORY_SEPARATOR ? 'where' : 'command -v --';
76
if (\function_exists('exec') && ($executablePath = strtok(@exec($command.' '.escapeshellarg($name)), \PHP_EOL)) && @is_executable($executablePath)) {
77
return $executablePath;
78
0 commit comments