mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-04 08:24:40 +01:00
Fixes a bug source_cmd introduced when 'ehco off' was added to the source command.
This commit is contained in:
parent
c3b94e5265
commit
50cf1d983b
1 changed files with 2 additions and 1 deletions
|
@ -254,7 +254,8 @@ def source_cmd(args, stdin=None):
|
|||
args[0] = fpath if fpath else args[0]
|
||||
if not os.path.isfile(args[0]):
|
||||
raise FileNotFoundError(args[0])
|
||||
prevcmd = 'call "{}"\necho off'.format(args[0])
|
||||
prevcmd = 'call "{}"'.format('" "'.join(args))
|
||||
prevcmd += '\necho off'
|
||||
args.append('--prevcmd={}'.format(prevcmd))
|
||||
args.insert(0, 'cmd')
|
||||
args.append('--interactive=0')
|
||||
|
|
Loading…
Add table
Reference in a new issue