Open santagada opened 6 years ago
I don't think this is fixable, Since the variables should also behave as normal python variables.
However, there is a workaround with the ${}
syntax.
snail@sea ~
$ ${'ProgramFiles(x86)'}
'C:\\Program Files (x86)'
Ok. It probably shouldn't crash with that traceback. For me it shows the full traceback even if $XONSH_SHOW_TRACEBACK=False
I have opened a separate issue for the last problem #2467
I think it's possible to implement. As mentioned above this is working pretty well:
${'ProgramFiles(x86)'} = 1
${'ProgramFiles(x86)'}
# 1
It's needed to fix the completion:
$P<Tab>
$ProgramFiles(x86) # instead of ${'ProgramFiles(x86)'}
Use this PR to fix completion - https://github.com/xonsh/xonsh/pull/5388
Right now xonsh doesn't support env variables with ( in their names.
For community
⬇️ Please click the 👍 reaction instead of leaving a
+1
or 👍 comment