xonsh / xonsh

:shell: Python-powered shell. Full-featured and cross-platform.
http://xon.sh
Other
8.21k stars 631 forks source link

Inline environment variable: `ValueError: identifier field can't represent` #5313

Open anki-code opened 4 months ago

anki-code commented 4 months ago
$QWE=False echo 1
Traceback (most recent call last):
  File "/opt/homebrew/lib/python3.11/site-packages/xonsh/ptk_shell/shell.py", line 389, in _push
    code = self.execer.compile(
           ^^^^^^^^^^^^^^^^^^^^
ValueError: identifier field can't represent 'False' constant

For community

⬇️ Please click the 👍 reaction instead of leaving a +1 or 👍 comment

jnoortheen commented 3 months ago

Workaround: env VAR=val cmd will work across shells