This commit is contained in:
a 2024-04-25 23:22:57 +02:00 committed by Noorhteen Raja NJ
parent a769689515
commit 134f313d73
2 changed files with 2 additions and 2 deletions

View file

@ -1186,7 +1186,7 @@ The file should contain a function with the signature
" - ptk style name (string) - ``$XONSH_STYLE_OVERRIDES['pygments.keyword'] = '#ff0000'``\n\n"
"(The rules above are all have the same effect.)",
)
XONSH_TRACE_SUBPROC = Var(
XONSH_TRACE_SUBPROC = Var.with_default(
default=always_false,
convert=to_bool_or_int,
doc="Set to ``True`` or ``1`` to show arguments list of every executed subprocess command. "

View file

@ -911,7 +911,7 @@ def run_subproc(cmds, captured=False, envs=None):
"bg": s.background,
}
p = {k: v for k, v in p.items() if v is not None}
print(f"{i}: {repr(p)}")
print(f"{i}: {repr(p)}", file=sys.stderr)
cmds = [
_flatten_cmd_redirects(cmd) if isinstance(cmd, list) else cmd for cmd in cmds