[tex-live] Wrong output in log file when piped input is used
Enrico Gregorio
enrico.gregorio at gmail.com
Thu Apr 14 14:02:03 CEST 2016
Consider the following example, to be compiled with pdftex -shell-escape
\input knuth
\input "|echo x"
\input "|echo x"
\input "|echo x"
\bye
The log file contains
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded
format=pdftex 2016.3.10) 14 APR 2016 13:44
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**testpipe
(./testpipe.tex
(/usr/local/texlive/2015/texmf-dist/tex/context/sample/knuth.tex)
(/usr/local/texlive/2015/texmf-dist/tex/context/sample/knuth.tex)
(/usr/local/texlive/2015/texmf-dist/tex/context/sample/knuth.tex)
(/usr/local/texlive/2015/texmf-dist/tex/context/sample/knuth.tex)
[1{/usr/local
/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
)</usr/local/texli
ve/2015/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on testpipe.pdf (1 page, 18787 bytes).
PDF statistics:
12 PDF objects out of 1000 (max. 8388607)
7 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
The knuth.tex file appears to being input four times, but it isn't. So it's
probably a small issue of some string that's not cleared.
Curiously enough, the log is fine if story.tex is input instead of
knuth.tex:
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded
format=pdftex 2016.3.10) 14 APR 2016 13:57
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**testpipe
(./testpipe.tex
(/usr/local/texlive/2015/texmf-dist/tex/plain/knuth-lib/story.tex
[1{/usr/local
/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]) () () () [2]
)</u
sr/local/texlive/2015/texmf-dist/fonts/type1/public/amsfonts/cm/cmbx10.pfb></us
r/local/texlive/2015/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb></usr/
local/texlive/2015/texmf-dist/fonts/type1/public/amsfonts/cm/cmsl10.pfb>
Output written on testpipe.pdf (2 pages, 36561 bytes).
PDF statistics:
23 PDF objects out of 1000 (max. 8388607)
15 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
I guess the difference is that \vfill\eject is executed before ending the
input.
If I do
\input knuth\relax\vfill\eject
the log contains
This is pdfTeX, Version 3.14159265-2.6-1.40.16 (TeX Live 2015) (preloaded
format=pdftex 2016.3.10) 14 APR 2016 13:59
entering extended mode
\write18 enabled.
%&-line parsing enabled.
**testpipe
(./testpipe.tex
(/usr/local/texlive/2015/texmf-dist/tex/context/sample/knuth.tex)
[1{/usr/local
/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map}]
(/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map)
(/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map)
(/usr/local/texlive/2015/texmf-var/fonts/map/pdftex/updmap/pdftex.map) [2]
)</u
sr/local/texlive/2015/texmf-dist/fonts/type1/public/amsfonts/cm/cmr10.pfb>
Output written on testpipe.pdf (2 pages, 19161 bytes).
PDF statistics:
15 PDF objects out of 1000 (max. 8388607)
9 compressed objects within 1 object stream
0 named destinations out of 1000 (max. 500000)
1 words of extra memory for PDF output out of 10000 (max. 10000000)
The same happens with 2016/pretest (just checked on a Linux box)
Ciao
Enrico
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/tex-live/attachments/20160414/007c9dc9/attachment-0001.html>
More information about the tex-live
mailing list