Skip to content

Commit edc87e1

Browse files
committed
Alter text
1 parent a34af7b commit edc87e1

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/reference/schemas/config/functions/tryWhich.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ title: tryWhich
77

88
## Synopsis
99

10-
Looks for an executable in the `PATH` environment variable and returns the full path to that
11-
executable or null if not found.
10+
Looks for an executable in the `PATH` environment variable and returns the full path to the first
11+
matching executable or null if not found.
1212

1313
## Syntax
1414

@@ -19,8 +19,8 @@ tryWhich(<commandName>)
1919
## Description
2020

2121
The `tryWhich()` function searches for an executable in the `PATH` environment variable and returns
22-
the full path to the executable if found. If the executable isn't discoverable, the function
23-
returns `null` instead of generating an error.
22+
the full path to the first matching executable if found. If the executable isn't discoverable, the
23+
function returns `null` instead of generating an error.
2424

2525
This function is useful for:
2626

@@ -185,8 +185,8 @@ Position: 1
185185

186186
## Output
187187

188-
Returns the full path to the executable as a string if found in the system PATH. Returns
189-
`null` if the executable is not found.
188+
Returns the full path to the first matching executable as a string if found in the system PATH.
189+
Returns `null` if the executable is not found.
190190

191191
```yaml
192192
Type: string or null

0 commit comments

Comments
 (0)