mirror of
https://github.com/xonsh/xonsh.git
synced 2025-03-06 09:20:57 +01:00
change_update
Set the value instead of update().
This commit is contained in:
parent
cc143e28dc
commit
4a6d1017fa
1 changed files with 2 additions and 2 deletions
|
@ -25,9 +25,9 @@ def cd(args, stdin=None):
|
|||
return '', 'cd: no such file or directory: {0}\n'.format(d)
|
||||
if not os.path.isdir(d):
|
||||
return '', 'cd: {0} is not a directory\n'.format(d)
|
||||
env.update({'OLDPWD': os.getcwd()})
|
||||
env['OLDPWD'] = os.getcwd()
|
||||
os.chdir(d)
|
||||
env.update({'PWD': os.getcwd()})
|
||||
env['PWD'] = os.getcwd()
|
||||
return None, None
|
||||
|
||||
def exit(args, stdin=None):
|
||||
|
|
Loading…
Add table
Reference in a new issue