mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
capturing redirection fix
This commit is contained in:
parent
b26568ede6
commit
a0fe77254c
2 changed files with 3 additions and 1 deletions
|
@ -47,6 +47,8 @@ None
|
|||
* Fixed issue with job management if a TTY existed but was not controlled
|
||||
by the process, posix only.
|
||||
* Jupyter kernel no longer times out when using foreign shells on startup.
|
||||
* Capturing redirections, e.g. ``$(echo hello > f.txt)``, no longer fails
|
||||
with a decoding error.
|
||||
|
||||
**Security:**
|
||||
|
||||
|
|
|
@ -625,7 +625,7 @@ def run_subproc(cmds, captured=True):
|
|||
hist.last_cmd_rtn = prev_proc.returncode
|
||||
if write_target is None:
|
||||
# get output
|
||||
output = ''
|
||||
output = b''
|
||||
if prev_proc.stdout not in (None, sys.stdout):
|
||||
output = prev_proc.stdout.read()
|
||||
if captured:
|
||||
|
|
Loading…
Add table
Reference in a new issue