doc: fix docs for look_path/1

This commit is contained in:
ge
2026-01-08 09:55:04 +03:00
parent 21ebb3dbfa
commit 4ccc80f4a5

View File

@@ -33,9 +33,10 @@ pub fn is_present(cmd string) bool {
} }
// look_path returns the absolute path to executable file. cmd may be a command // look_path returns the absolute path to executable file. cmd may be a command
// name or filepath (relative or absolute). If the name contains a slash, then the // name or filepath (relative or absolute). The command is searched in PATH. If
// PATH search is not performed, instead the path will be resolved and the file // the name contains a slash, then the PATH search is not performed, instead the
// existence and its permissions will be checked (execution must be allowed). // path will be resolved and the file existence will be checked. In both cases
// the file must have the execute permission bit enabled.
// Note: To use executables located in the current working directory use './file' // Note: To use executables located in the current working directory use './file'
// instead of just 'file'. Searching for executable files in the current directory // instead of just 'file'. Searching for executable files in the current directory
// is disabled for security reasons. See https://go.dev/blog/path-security. // is disabled for security reasons. See https://go.dev/blog/path-security.