File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
docs/reference/schemas/config/functions Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff 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
2121The ` 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
2525This 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
192192Type: string or null
You can’t perform that action at this time.
0 commit comments