mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
![]() ### Before Case 1: ```xsh xonsh --no-rc --no-env -DCOLOR_OUTPUT 0 # space between -DVAR and VALUE ``` ```xsh Traceback (most recent call last): File "/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/xonsh/main.py", line 478, in main args = premain(argv) ^^^^^^^^^^^^^ File "/Users/pc/.local/xonsh-env/lib/python3.12/site-packages/xonsh/main.py", line 420, in premain env.update([x.split("=", 1) for x in args.defines]) File "<frozen _collections_abc>", line 987, in update ValueError: not enough values to unpack (expected 2, got 1) Xonsh encountered an issue during launch ``` Case 2: ```xsh xonsh --no-rc --no-env -DXONSH_HISTORY_BACKEND=dummy history info # json # EXPECTED: dummy ``` ### After Case 1: ```xsh xonsh --no-rc --no-env -DCOLOR_OUTPUT 0 # Wrong format for -DCOLOR_OUTPUT argument. Use -DVAR=VAL form. ``` Case 2: ```xsh xonsh --no-rc --no-env -DXONSH_HISTORY_BACKEND=dummy history info # dummy ``` Closes #5395 ## For community ⬇️ **Please click the 👍 reaction instead of leaving a `+1` or 👍 comment** --------- Co-authored-by: a <1@1.1> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> |
||
---|---|---|
.. | ||
appimage_py311.rst | ||
env_completion.rst | ||
fix_process_traceback.rst | ||
jobs_catch_no_process.rst | ||
jobs_repr.rst | ||
main_d.rst | ||
mini_refactor.rst | ||
no_env.rst | ||
popen_name.rst | ||
shell_type.rst | ||
subproc_output_format.rst | ||
TEMPLATE.rst | ||
trace_subproc.rst | ||
waitpid_returncode.rst | ||
xonfig_env.rst | ||
zulip.rst |