changeset 10:10903effdfa7 draft

Expand tildes in cd
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Sat, 12 Apr 2014 14:49:12 -0400
parents d90cb7004332
children 8b84762b1814
files sh-replay
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sh-replay
+++ b/sh-replay
@@ -97,7 +97,7 @@
         waitforenter()
 
         if cmd.startswith("cd "):
-            cd(cmd[3:])
+            cd(os.path.expanduser(cmd[3:]))
         else:
             with open("/tmp/cmd", "w") as f:
                 f.write("shopt -s expand_aliases\n")