If I typeset the following noinput.tex test file with “xetex -shell-escape noinput”
---\input"|echo $(date)”\relax---
---\input"|echo $(date)”\relax---
\bye
the console output is
xetex -shell-escape noinput
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xetex)
\write18 enabled.
entering extended mode
(./noinput.tex (|echo $(date)---) (|echo $(date)---) [1] >
Note the missing newline. No PDF file is produced. If I call it as
xetex -shell-escape -no-pdf noinput && xdvipdfmx noinput
then a PDF file is produced, but only the first \input| command shows output. The
second one seems to just produce a \par. The console output, in this case, is
This is XeTeX, Version 3.14159265-2.6-0.99998 (TeX Live 2017) (preloaded format=xetex)
\write18 enabled.
entering extended mode
(./noinput.tex (|echo $(date)) (|echo $(date)) [1] )
Output written on noinput.xdv (1 page, 288 bytes).
Transcript written on noinput.log.
noinput -> noinput.pdf
[1]
3338 bytes written
The log file shows nothing suspicious.
Tested on Mac OS X 10.10 (Yosemite), 10.12 (Sierra), 10.13 (HighSierra). On other platforms the behavior is as expected.
Anonymous
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
Adding also the PDF
Sorry for the anonymous, I forgot to log in.
Same on my Mac (OS X 10.11.6 El Capitan), x86_64-darwin self build (source from r46522).
I get a similar result from the following:
When I comment out
\closein10, the problem disappears. I guess something wrong is happening when closing the pipe, as xdvipdfmx gets XeTeX output through pipe if -no-pdf is not effective.Last edit: Hironobu Yamashita 2018-02-02
The followings are tested on OS X 10.11.6 El Capitan:
By embedding some debug codes into pipe open/close procedure,
By processing the following source (pipe0.tex),
XeTeX log output contains
The expected output can be obtained from pdfTeX, Aleph, pTeX etc:
So, it seems that XeTeX is failing to close the correct pipe. (Actually, the closing is done separately by
uclose()defined in XeTeX_ext.c)Last edit: Hironobu Yamashita 2018-02-03
I wrote a patch to fix this issue; working fine on my Mac.
Thanks for looking into this! Patch applied.
Fixed in 49e5f5ec9383e4cb2d54c64436974720c30d3d6d for version 0.99999.
Thanks for checking; your commit acfb33ced483f900bc7986087eb8d416ed8812e2 is correctly installed (TeX Live svn r46526). Hope #145 fixed as well for TL18.