texlive[64908] Master/texmf-dist: iexec (2nov22)

commits+karl at tug.org commits+karl at tug.org
Wed Nov 2 23:06:29 CET 2022


Revision: 64908
          http://tug.org/svn/texlive?view=revision&revision=64908
Author:   karl
Date:     2022-11-02 23:06:29 +0100 (Wed, 02 Nov 2022)
Log Message:
-----------
iexec (2nov22)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/iexec/iexec.pdf
    trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx
    trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty

Modified: trunk/Master/texmf-dist/doc/latex/iexec/iexec.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx	2022-11-02 22:06:12 UTC (rev 64907)
+++ trunk/Master/texmf-dist/source/latex/iexec/iexec.dtx	2022-11-02 22:06:29 UTC (rev 64908)
@@ -50,7 +50,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{iexec}
 %<*package>
-[2022-10-29 0.11.3 Inputable Shell Executions]
+[2022-11-01 0.11.4 Inputable Shell Executions]
 %</package>
 %<*driver>
 \documentclass{ltxdoc}
@@ -265,10 +265,10 @@
 %    \end{macrocode}
 
 % Then, we prepare to parse the options of |\iexec| command:
-% \changes{0.10.0}{2022/10/19}{The option "ignore" suppresses the checking of "iexec.ret" value.}
+% \changes{0.10.0}{2022/10/19}{The option ``\texttt{ignore}'' suppresses the checking of ``\texttt{iexec.ret}'' value.}
 % \changes{0.7.0}{2022/09/25}{The option "append" was introduced --- if it's turned on, stdout will be appended to the file, instead of rewriting it (this is how it was before).}
-% \changes{0.7.0}{2022/09/25}{The option "log" was introduced, to turn on log/debug messages in TeX log (they were all visible always, which was sometimes annoying. Also, this option enables printing of the entire content of stdout to the log too (this may be pretty convenient for debugging).}
-% \changes{0.11.0}{2022/10/22}{The option "exit" allows to change the name of the file with exit code.}
+% \changes{0.7.0}{2022/09/25}{The option ``\texttt{log}'' was introduced, to turn on log/debug messages in TeX log (they were all visible always, which was sometimes annoying. Also, this option enables printing of the entire content of stdout to the log too (this may be pretty convenient for debugging).}
+% \changes{0.11.0}{2022/10/22}{The option ``\texttt{exit}'' allows to change the name of the file with exit code.}
 %    \begin{macrocode}
 \RequirePackage{pgfkeys}
 \makeatletter\pgfkeys{
@@ -344,19 +344,20 @@
       \let\{\@charlb%
       \let\}\@charrb%
 %    \end{macrocode}
-% Then, we execute it and save exit code into a file (where we also add \% in order to trim the content to exactly one number, as suggested \href{https://tex.stackexchange.com/questions/662756}{here}):
-% \changes{0.10.0}{2022/10/19}{The ability to track exit code was added. Now, the code is saved into "iexec.ret" file, which is then read and checked for zero value.}
-% \changes{0.8.0}{2022/10/05}{The option "null" was introduced, allowing redirection of stdout to "/dev/null". Doesn't work on Windows, though.}
-% \changes{0.9.0}{2022/10/15}{The option "stderr" was introduced, allowing redirection of stderr to a file. Without this option specified, stderr will go to stdout.}
+% Then, we execute it and save exit code into a file (where we also add \texttt{\%} in order to trim the content to exactly one number, as suggested \href{https://tex.stackexchange.com/questions/662756}{here}):
+% \changes{0.10.0}{2022/10/19}{The ability to track exit code was added. Now, the code is saved into ``\texttt{iexec.ret}'' file, which is then read and checked for zero value.}
+% \changes{0.8.0}{2022/10/05}{The option "null" was introduced, allowing redirection of stdout to ``\texttt{/dev/null}''. Doesn't work on Windows, though.}
+% \changes{0.9.0}{2022/10/15}{The option ``\texttt{stderr}'' was introduced, allowing redirection of stderr to a file. Without this option specified, stderr will go to stdout.}
 % \changes{0.11.0}{2022/10/22}{The file with exit code now contains just numbers, without end of line.}
 % \changes{0.11.1}{2022/10/23}{When exit code is printed to the file, we add percentchar at the end of line in order to avoid extra space when reading it back.}
 % \changes{0.11.3}{2022/10/29}{Bug fixed, because of which we had an extra leading space.}
+% \changes{0.11.4}{2022/11/01}{In this version we escape dollar sign with \texttt{\char`\\string} command.}
 %    \begin{macrocode}
       \def\iexec at cmd{(#2)
         \ifdefined\iexec at append>\fi>
         \ifdefined\iexec at null/dev/null\else\iexec at stdout\fi
         \space\ifdefined\iexec at stderr2>\iexec at stderr\else2>&1\fi;
-        /bin/echo -n $?\% >\iexec at exit}%
+        /bin/echo -n \string$?\% >\iexec at exit}%
       \ShellEscape{\iexec at cmd}%
 %    \end{macrocode}
 % Then, a message is printed to \TeX{} log:
@@ -373,7 +374,7 @@
     \immediate\closein\iexec at exitfile%
 %    \end{macrocode}
 % Then, if required, we print the content of the stdout file to \TeX{} log:
-% \changes{0.11.2}{2022/10/25}{If execution fails, we print the content of 'stdout' anyway, even if the 'log' is not turned on.}
+% \changes{0.11.2}{2022/10/25}{If execution fails, we print the content of ``\texttt{stdout}'' anyway, even if the ``\texttt{log}'' is not turned on.}
 %    \begin{macrocode}
     \ifdefined\iexec at null\else%
     \ifdefined\iexec at log%

Modified: trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty	2022-11-02 22:06:12 UTC (rev 64907)
+++ trunk/Master/texmf-dist/tex/latex/iexec/iexec.sty	2022-11-02 22:06:29 UTC (rev 64908)
@@ -31,7 +31,7 @@
 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{iexec}
-[2022-10-29 0.11.3 Inputable Shell Executions]
+[2022-11-01 0.11.4 Inputable Shell Executions]
 
 
 
@@ -110,7 +110,7 @@
         \ifdefined\iexec at append>\fi>
         \ifdefined\iexec at null/dev/null\else\iexec at stdout\fi
         \space\ifdefined\iexec at stderr2>\iexec at stderr\else2>&1\fi;
-        /bin/echo -n $?\% >\iexec at exit}%
+        /bin/echo -n \string$?\% >\iexec at exit}%
       \ShellEscape{\iexec at cmd}%
       \ifdefined\iexec at log%
         \message{iexec: [\iexec at cmd]^^J}%



More information about the tex-live-commits mailing list.