From 4ccc80f4a5818d25448150c73b03ff37c7c5b548 Mon Sep 17 00:00:00 2001 From: ge Date: Thu, 8 Jan 2026 09:55:04 +0300 Subject: [PATCH] doc: fix docs for look_path/1 --- runcmd.v | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/runcmd.v b/runcmd.v index dc8a4ca..e6308e6 100644 --- a/runcmd.v +++ b/runcmd.v @@ -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 -// name or filepath (relative or absolute). If the name contains a slash, then the -// PATH search is not performed, instead the path will be resolved and the file -// existence and its permissions will be checked (execution must be allowed). +// name or filepath (relative or absolute). The command is searched in PATH. If +// the name contains a slash, then the PATH search is not performed, instead the +// 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' // instead of just 'file'. Searching for executable files in the current directory // is disabled for security reasons. See https://go.dev/blog/path-security.