change_update

Set the value instead of update().
This commit is contained in:
Alexandre Ferland 2015-03-18 20:32:18 -04:00
parent cc143e28dc
commit 4a6d1017fa

View file

@ -25,9 +25,9 @@ def cd(args, stdin=None):
return '', 'cd: no such file or directory: {0}\n'.format(d) return '', 'cd: no such file or directory: {0}\n'.format(d)
if not os.path.isdir(d): if not os.path.isdir(d):
return '', 'cd: {0} is not a directory\n'.format(d) return '', 'cd: {0} is not a directory\n'.format(d)
env.update({'OLDPWD': os.getcwd()}) env['OLDPWD'] = os.getcwd()
os.chdir(d) os.chdir(d)
env.update({'PWD': os.getcwd()}) env['PWD'] = os.getcwd()
return None, None return None, None
def exit(args, stdin=None): def exit(args, stdin=None):