From 237f43ebdb109d7463e0d199708d0a7b7c71eb19 Mon Sep 17 00:00:00 2001 From: mcarton Date: Thu, 28 May 2015 23:28:46 +0200 Subject: [PATCH] Fix cd command Fix #226 --- thefuck/rules/cd_correction.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/thefuck/rules/cd_correction.py b/thefuck/rules/cd_correction.py index bdd7c34b..9be10237 100644 --- a/thefuck/rules/cd_correction.py +++ b/thefuck/rules/cd_correction.py @@ -47,7 +47,7 @@ def get_new_command(command, settings): cwd = os.path.join(cwd, best_matches[0]) else: return cd_mkdir.get_new_command(command, settings) - return "cd {0}".format(cwd) + return 'cd "{0}"'.format(cwd) enabled_by_default = True