diff scripts/miscellaneous/copyfile.m @ 6398:9bd49ed48ee6

[project @ 2007-03-08 19:40:01 by jwe]
author jwe
date Thu, 08 Mar 2007 19:40:01 +0000
parents a299c8a6d96e
children 81eb28d50cee
line wrap: on
line diff
--- a/scripts/miscellaneous/copyfile.m	Thu Mar 08 17:37:39 2007 +0000
+++ b/scripts/miscellaneous/copyfile.m	Thu Mar 08 19:40:01 2007 +0000
@@ -72,6 +72,8 @@
     f1 = glob (f1);
     f1 = sprintf ("\"%s\" ", f1{:});
 
+    f2 = tilde_expand (f2);
+
     ## Copy the files.
     [err, msg] = system (sprintf ("%s %s \"%s\"", cmd, f1, f2));
     if (err < 0)