which

As the unix command which it searches in dirs for an executable name.

The difference in the behavior is that this function returns all matches and supports globbing (use of *).

nothrow
which
(,
string name
)

Examples

writeln(which([Path("/bin")], "ls"));
writeln(which([Path("/bin")], "l*"));

Meta