Skip to content

Commit

Permalink
fix: xonsh hook
Browse files Browse the repository at this point in the history
It was raising a TypeError:

```
xonsh: For full traceback set: $XONSH_SHOW_TRACEBACK = True
TypeError: 'method' object is not subscriptable
Exception raised in event handler; ignored.
```
  • Loading branch information
CharString committed Nov 13, 2023
1 parent 6ff51d8 commit bd1ea5e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/shell/xonsh.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ impl Shell for Xonsh {
from xonsh.built_ins import XSH
envx = XSH.env
envx.pop[ '{k}',None]
environ.pop['{k}',None]
envx.pop( '{k}',None)
environ.pop('{k}',None)
"#,
k = shell_escape::unix::escape(k.into()) // todo: drop illegal chars, not escape?
)
Expand Down

0 comments on commit bd1ea5e

Please sign in to comment.