1
0
mirror of git://git.sv.gnu.org/coreutils.git synced 2026-04-21 03:12:48 +02:00

doc: document PATH interactions with env

* doc/coreutils.texi (env invocation): Mention that PATH is
modified prior to exec.
* tests/misc/env: Test this.
This commit is contained in:
Eric Blake
2009-10-26 09:26:00 -06:00
parent 243f1b1c71
commit 0f3f6bf6bf
2 changed files with 26 additions and 3 deletions

View File

@@ -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