summaryrefslogtreecommitdiff
path: root/doc/coreutils.texi
diff options
context:
space:
mode:
authorEric Blake <ebb9@byu.net>2009-10-26 09:26:00 -0600
committerEric Blake <ebb9@byu.net>2009-10-26 21:30:32 -0600
commit0f3f6bf6bf38f1ed9c85fe98d6ac7645bf10a6c3 (patch)
tree9e6b57d8ff87fad835d37dc684ed904d3f0aa7cb /doc/coreutils.texi
parent243f1b1c71136171a4da635a84f8e32ba3eb3c94 (diff)
downloadcoreutils-0f3f6bf6bf38f1ed9c85fe98d6ac7645bf10a6c3.tar.xz
doc: document PATH interactions with env
* doc/coreutils.texi (env invocation): Mention that PATH is modified prior to exec. * tests/misc/env: Test this.
Diffstat (limited to 'doc/coreutils.texi')
-rw-r--r--doc/coreutils.texi5
1 files changed, 5 insertions, 0 deletions
diff --git a/doc/coreutils.texi b/doc/coreutils.texi
index c54ffb88f..8a79ba7fb 100644
--- a/doc/coreutils.texi
+++ b/doc/coreutils.texi
@@ -14408,6 +14408,11 @@ remaining arguments are passed as arguments to that program.
The program should not be a special built-in utility
(@pxref{Special built-in utilities}).
+Modifications to @env{PATH} take effect prior to searching for
+@var{command}. Use caution when reducing @env{PATH}; behavior is
+not portable when @env{PATH} is undefined or omits key directories
+such as @file{/bin}.
+
@cindex environment, printing
If no command name is specified following the environment