[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no
From: |
Rik |
Subject: |
[Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file |
Date: |
Wed, 11 Mar 2020 11:31:49 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (Windows NT 10.0; WOW64; Trident/7.0; rv:11.0) like Gecko |
Follow-up Comment #13, bug #57143 (project octave):
This bit of code looks suspect
if (pipein)
if (dos_shell)
filein(filein=="'") = '"';
gs_cmd = __ghostscript__ ("binary", opts.ghostscript.binary,
"device", epsdevice,
"source", "-",
"output", filein);
cmd = sprintf ("%s %s & %s", gs_cmd, filein, cmd);
else
cmd = sprintf ("cat > %s ; %s", filein, cmd);
endif
endif
My guess is that when dos_shell is true, gs_cmd already includes filein, and
therefore the code should not be
cmd = sprintf ("%s %s & %s", gs_cmd, filein, cmd);
but instead
cmd = sprintf ("%s & %s", gs_cmd, cmd);
I have no access to Windows so I can test this, but it would be simple enough
to edit the file print.m in an existing Windows installation to test.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57143>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, Mike Miller, 2020/03/05
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, Kai Torben Ohlhus, 2020/03/11
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, Rik, 2020/03/11
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, Rik, 2020/03/11
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, Rik, 2020/03/11
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file,
Rik <=
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, anonymous, 2020/03/11
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, Kai Torben Ohlhus, 2020/03/12
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, Kai Torben Ohlhus, 2020/03/12
- [Octave-bug-tracker] [bug #57143] print ('-tight', 'q.eps') produces no file, Rik, 2020/03/12