diff options
author | Bruno Haible <bruno@clisp.org> | 2019-09-28 15:29:05 +0200 |
---|---|---|
committer | Bruno Haible <bruno@clisp.org> | 2019-09-28 15:29:05 +0200 |
commit | 49939c10add166e81112043bf3238b7a782e9b48 (patch) | |
tree | 6977ec407a83aaf1a19d1995810d51570eb1c4fc | |
parent | 2838d7e4a3476f03b4a2fd7a5f37e738c6c2d361 (diff) | |
download | gnulib-49939c10add166e81112043bf3238b7a782e9b48.tar.gz gnulib-49939c10add166e81112043bf3238b7a782e9b48.tar.bz2 |
access: Document limitations on Windows.
Suggested by Zaretskii <eliz@gnu.org>.
* doc/posix-functions/access.texi: Mention two limitations on Windows.
-rw-r--r-- | ChangeLog | 8 | ||||
-rw-r--r-- | doc/posix-functions/access.texi | 13 |
2 files changed, 20 insertions, 1 deletions
@@ -1,4 +1,10 @@ -2019-09-15 Bruno Haible <bruno@clisp.org> +2019-09-28 Bruno Haible <bruno@clisp.org> + + access: Document limitations on Windows. + Suggested by Zaretskii <eliz@gnu.org>. + * doc/posix-functions/access.texi: Mention two limitations on Windows. + +2019-09-28 Bruno Haible <bruno@clisp.org> findprog-in: Fix comment. Reported by Eli Zaretskii <eliz@gnu.org>. diff --git a/doc/posix-functions/access.texi b/doc/posix-functions/access.texi index 49064d2bb0..8bfa2c1a67 100644 --- a/doc/posix-functions/access.texi +++ b/doc/posix-functions/access.texi @@ -31,4 +31,17 @@ this function, especially in a set-uid or set-gid program. This function does not have an option for not following symbolic links (like @code{stat} versus @code{lstat}). If you need this option, use the Gnulib module @code{faccessat} with the @code{AT_EACCESS} flag. +@item +On native Windows, files whose basename does not contain a @samp{.} +cannot be executed through @code{execlp} or @code{execvp}. Nevertheless, +this function may return true for such files. +@item +On Windows, different facilities for executing a program have different +ways of finding an executable file, by trying various suffixes. For +example, @code{execlp} and @code{execvp} search for files with the +suffixes @code{.com}, @code{.exe}, @code{.bat}, @code{.cmd}, when the +file with the given file name does not exist. Whereas @code{cmd.exe} +searches according to the @code{PATHEXT} environment variable. This +function does not perform any search; it merely looks at the file with +the given file name. @end itemize |