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>
23 lines
323 B
ReStructuredText
23 lines
323 B
ReStructuredText
**Added:**
|
|
|
|
* Added ``xonsh --no-env`` option to run xonsh without inheriting the environment variables. Now by running ``xonsh --no-rc --no-env`` you have pure xonsh session.
|
|
|
|
**Changed:**
|
|
|
|
* <news item>
|
|
|
|
**Deprecated:**
|
|
|
|
* <news item>
|
|
|
|
**Removed:**
|
|
|
|
* <news item>
|
|
|
|
**Fixed:**
|
|
|
|
* <news item>
|
|
|
|
**Security:**
|
|
|
|
* <news item>
|