Discussion:
Issue with XeTeX on MacTeX related to "\input|”
Add Reply
Enrico Gregorio
2018-01-26 10:05:27 UTC
Reply
Permalink
Raw Message
I get back with the same issue I reported a few months ago,
hoping it will be solved in the next release. I’m certain others
suffer with the issue.

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.

Ciao
Enrico
Enrico Gregorio
2018-01-26 15:08:28 UTC
Reply
Permalink
Raw Message
I tried your experiment with the file
% cat /var/tmp/noinput.tex
---\input"|echo $(date)--
---\input"|echo $(date)--
\bye
and with both
xetex -shell-escape noinput
xetex -shell-escape -no-pdf noinput && xdvipdfmx noinput
on my new TeX Live 2018 build on GNU/Linux (CentOS 7), I got expected
--Fri Jan 26 06:52:15 MST 2018 --
--Fri Jan 26 06:52:15 MST 2018 --
Yes, it seems a specific issue with MacTeX.

I tried on a vanilla TeX Live on Fedora and on TeX Live/Debian 2016,
the result is as expected in both cases.

Ciao
Enrico
George N. White III
2018-01-26 17:44:12 UTC
Reply
Permalink
Raw Message
Post by Enrico Gregorio
I tried your experiment with the file
% cat /var/tmp/noinput.tex
---\input"|echo $(date)--
---\input"|echo $(date)--
\bye
and with both
xetex -shell-escape noinput
xetex -shell-escape -no-pdf noinput && xdvipdfmx noinput
on my new TeX Live 2018 build on GNU/Linux (CentOS 7), I got expected
--Fri Jan 26 06:52:15 MST 2018 --
--Fri Jan 26 06:52:15 MST 2018 --
Yes, it seems a specific issue with MacTeX.
The bug is also present in the MacPorts version (Version
3.14159265-2.6-0.99998 (TeX Live 2017/MacPorts 2017_2)
Post by Enrico Gregorio
I tried on a vanilla TeX Live on Fedora and on TeX Live/Debian 2016,
the result is as expected in both cases.
also works: TeX Live 2017 and "TeX Live 2013/Debian" on Ubuntu 14.04
--
George N. White III
Loading...