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 8bda0be commit 710e278Copy full SHA for 710e278
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