# HG changeset patch # User Rik # Date 1365637266 25200 # Node ID d4ce14c19c2c910bf0e5462f39b3715a43accd15 # Parent 6a18d8b0f9821f96345464d3c8f6fccea1f0331c Fix print to work with filenames which begin with '~' (bug #38694). * scripts/plot/private/__print_parse_opts__.m: Call tilde_expand() on filename input. diff --git a/scripts/plot/private/__print_parse_opts__.m b/scripts/plot/private/__print_parse_opts__.m --- a/scripts/plot/private/__print_parse_opts__.m +++ b/scripts/plot/private/__print_parse_opts__.m @@ -159,7 +159,7 @@ elseif (length (arg) >= 1 && arg(1) == "-") error ("print: unknown option '%s'", arg); elseif (length (arg) > 0) - arg_st.name = arg; + arg_st.name = tilde_expand (arg); endif elseif (isfigure (arg)) arg_st.figure = arg;