summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/iexec/iexec.sty
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/iexec/iexec.sty')
-rw-r--r--Master/texmf-dist/tex/latex/iexec/iexec.sty21
1 files changed, 15 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/latex/iexec/iexec.sty b/Master/texmf-dist/tex/latex/iexec/iexec.sty
index 5ce5a76a160..9a493aa04a0 100644
--- a/Master/texmf-dist/tex/latex/iexec/iexec.sty
+++ b/Master/texmf-dist/tex/latex/iexec/iexec.sty
@@ -31,7 +31,7 @@
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{iexec}
-[2022-10-23 0.11.1 Inputable Shell Executions]
+[2022-10-25 0.11.2 Inputable Shell Executions]
@@ -110,21 +110,30 @@
\ifdefined\iexec@append>\fi>
\ifdefined\iexec@null/dev/null\else\iexec@stdout\fi
\space\ifdefined\iexec@stderr2>\iexec@stderr\else2>&1\fi;
- /bin/echo -n $?\% >\iexec@exit}
+ /bin/echo -n $?\% >\iexec@exit}%
\ShellEscape{\iexec@cmd}%
\ifdefined\iexec@log%
\message{iexec: [\iexec@cmd]^^J}%
\fi%
\endgroup%
+ \immediate\openin\iexec@exitfile=\iexec@exit%
+ \read\iexec@exitfile to \iexec@code%
+ \immediate\closein\iexec@exitfile%
\ifdefined\iexec@null\else%
\ifdefined\iexec@log%
- \message{iexec: This is the content of \iexec@stdout:^^J}%
+ \message{iexec: This is the content of '\iexec@stdout':^^J}%
\iexec@typeout{\iexec@stdout}%
\message{<EOF>^^J}%
+ \else%
+ \ifnum\iexec@code=0\else%
+ \ifdefined\iexec@ignore\else%
+ \message{iexec: See the content of '\iexec@stdout'
+ after failure:^^J}%
+ \iexec@typeout{\iexec@stdout}%
+ \message{<EOF>^^J}%
+ \fi%
+ \fi%
\fi\fi%
- \immediate\openin\iexec@exitfile=\iexec@exit%
- \read\iexec@exitfile to \iexec@code%
- \immediate\closein\iexec@exitfile%
\ifnum\iexec@code=0\else%
\ifdefined\iexec@ignore%
\ifdefined\iexec@log%