Mercurial > hg > octave-nkf
diff scripts/plot/private/__print_parse_opts__.m @ 16488:d4ce14c19c2c
Fix print to work with filenames which begin with '~' (bug #38694).
* scripts/plot/private/__print_parse_opts__.m: Call tilde_expand()
on filename input.
author | Rik <rik@octave.org> |
---|---|
date | Wed, 10 Apr 2013 16:41:06 -0700 |
parents | 550147454137 |
children | c3c1ebfaa7dc |
line wrap: on
line diff
--- 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;