[latex3-commits] [git/LaTeX3-latex3-latex3] master: Fix \ior_shell_open:Nn for non-LuaTeX engines (6173068c6)

PhelypeOleinik tex.phelype at gmail.com
Mon Mar 30 23:49:43 CEST 2020


Repository : https://github.com/latex3/latex3
On branch  : master
Link       : https://github.com/latex3/latex3/commit/6173068c6db235317579855623de061a4de759a9

>---------------------------------------------------------------

commit 6173068c6db235317579855623de061a4de759a9
Author: PhelypeOleinik <tex.phelype at gmail.com>
Date:   Mon Mar 30 18:49:43 2020 -0300

    Fix \ior_shell_open:Nn for non-LuaTeX engines
    
    This pair of quotes isn't necessary, as quotes are already added in \__ior_open_stream:Nn.


>---------------------------------------------------------------

6173068c6db235317579855623de061a4de759a9
 l3kernel/l3candidates.dtx | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index e346f674a..b9fbca8c9 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -1405,6 +1405,9 @@
 % \begin{macro}{\ior_shell_open:Nn}
 % \begin{macro}{\@@_shell_open:nN}
 %   Actually much easier than either the standard open or input versions!
+%   When calling \cs{__kernel_ior_open:Nn} the file the pipe is added to
+%   signal a shell command, but the quotes are not added yet---they are
+%   added later by \cs{__kernel_file_name_quote:n}.
 %    \begin{macrocode}
 \cs_new_protected:Npn \ior_shell_open:Nn #1#2
   {
@@ -1419,7 +1422,7 @@
         \__kernel_msg_error:nnx
           { kernel } { quote-in-shell } {#1}
       }
-      { \__kernel_ior_open:Nn #2 { "|#1" } }
+      { \__kernel_ior_open:Nn #2 { |#1 } }
   }
 \__kernel_msg_new:nnnn { kernel } { pipe-failed }
   { Cannot~run~piped~system~commands. }





More information about the latex3-commits mailing list.