changeset 28711:29b627624aaa stable

avoid possible infinite recursion for "open ." * open.m: Call make_absolute_filename on result of tilde_expand.
author John W. Eaton <jwe@octave.org>
date Thu, 10 Sep 2020 17:20:31 -0400
parents f0a3f4527ba6
children e8b7863a7e6b 28d2511f2af2
files scripts/miscellaneous/open.m
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/scripts/miscellaneous/open.m	Wed Sep 09 23:57:20 2020 -0400
+++ b/scripts/miscellaneous/open.m	Thu Sep 10 17:20:31 2020 -0400
@@ -85,7 +85,7 @@
     error ("open: unable to find file %s", file);
   endif
 
-  file = tilde_expand (file);
+  file = make_absolute_filename (tilde_expand (file));
 
   [~, fname, ext] = fileparts (file);