Mercurial > octave
changeset 28209:63f5c721cfde
maint: merge stable to default.
author | Rik <rik@octave.org> |
---|---|
date | Sat, 11 Apr 2020 16:26:19 -0700 |
parents | ab60e78d235c (current diff) c3dd445fcc2f (diff) |
children | bb929d5a34cb |
files | |
diffstat | 1 files changed, 10 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/scripts/plot/util/print.m Sat Apr 11 16:06:19 2020 -0700 +++ b/scripts/plot/util/print.m Sat Apr 11 16:26:19 2020 -0700 @@ -890,8 +890,16 @@ cmd = ""; endif if (! isempty (cmd)) - cmd = sprintf ("%s --quiet %s %s %s ", opts.epstool_binary, - cmd, filein, fileout); + if (dos_shell) + ## ghostscript expects double, not single, quotes + fileout(fileout == "'") = '"'; + ## epstool implicitly uses ghostscript and it needs the command name + cmd = sprintf ("%s --gs %s --quiet %s %s %s ", opts.epstool_binary, + opts.ghostscript.binary, cmd, filein, fileout); + else + cmd = sprintf ("%s --quiet %s %s %s ", opts.epstool_binary, + cmd, filein, fileout); + endif endif if (pipein) if (dos_shell)