1. [lit] Fix internal env calling other internal commands (details)
Commit 0d4e6519c5dd81034935d4da9c519c17e41b1202 by jdenny.ornl
[lit] Fix internal env calling other internal commands
Without this patch, when using lit's internal shell, if `env` on a lit
RUN line calls `cd`, `mkdir`, or any of the other in-process shell
builtins that lit implements, lit accidentally searches for the latter
as an external executable.
This patch puts such builtins in a map so that boilerplate for them need
be implemented only once.  This patch moves that handling after
processing of `env` so that `env` calling such a builtin can be
detected.  Finally, because such calls appear to be useless, this patch
takes the safe approach of diagnosing them rather than supporting them.
Reviewed By: probinson, mgorny, rnk
Differential Revision:
The file was addedllvm/utils/lit/tests/Inputs/shtest-env/env-calls-colon.txt
The file was addedllvm/utils/lit/tests/Inputs/shtest-env/env-calls-export.txt
The file was addedllvm/utils/lit/tests/Inputs/shtest-env/env-calls-cd.txt
The file was addedllvm/utils/lit/tests/Inputs/shtest-env/env-calls-mkdir.txt
The file was addedllvm/utils/lit/tests/Inputs/shtest-env/env-calls-rm.txt
The file was modifiedllvm/utils/lit/tests/
The file was modifiedllvm/utils/lit/lit/
The file was addedllvm/utils/lit/tests/Inputs/shtest-env/env-calls-echo.txt