mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-05 17:00:58 +01:00
replace recursive subproc call with alias assignment
This commit is contained in:
parent
e858b009cf
commit
e3323169e3
1 changed files with 2 additions and 1 deletions
|
@ -529,7 +529,8 @@ def run_subproc(cmds, captured=True):
|
|||
and locate_binary(cmd[0], cwd=None) is None
|
||||
and len(cmds)==1):
|
||||
cmd.insert(0, 'cd')
|
||||
return run_subproc(cmds, captured=False)
|
||||
alias = builtins.aliases.get('cd', None)
|
||||
|
||||
if callable(alias):
|
||||
aliased_cmd = alias
|
||||
else:
|
||||
|
|
Loading…
Add table
Reference in a new issue