mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
![]() ### Motivation Basically we use `xonsh --no-rc` to have pure xonsh. I noticed many times when parent environment can affect `xonsh --no-rc` e.g. `$XONSH_HISTORY_FILE`. Current workaround is `env -i @$(which xonsh) --no-rc` but I think we need to have pure xonsh way. Closes #4921 ### Before ```xsh xonsh --no-rc $QWE = 1 xonsh --no-rc $QWE # 1 ``` ### After ```xsh xonsh --no-rc $QWE = 1 xonsh --no-rc --no-env $QWE # Unknown environment variable: $QWE $XONSH_ENV_INHERITED # Marker to have a way to catch this situation. # False ``` Co-authored-by: a <1@1.1> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Gil Forsyth <gforsyth@users.noreply.github.com> |
||
---|---|---|
.. | ||
appimage_py311.rst | ||
jobs_catch_no_process.rst | ||
jobs_repr.rst | ||
no_env.rst | ||
popen_name.rst | ||
shell_type.rst | ||
TEMPLATE.rst | ||
trace_subproc.rst | ||
zulip.rst |