[latex3-commits] [git/LaTeX3-latex3-latex3] master: Make \sys_shell_cp:nn slightly more restrictive (ef4cbad)
Joseph Wright
joseph.wright at morningstar2.co.uk
Fri Jul 27 10:57:24 CEST 2018
Repository : https://github.com/latex3/latex3
On branch : master
Link : https://github.com/latex3/latex3/commit/ef4cbad7127b5e14226a4e5247448043c719a0c1
>---------------------------------------------------------------
commit ef4cbad7127b5e14226a4e5247448043c719a0c1
Author: Joseph Wright <joseph.wright at morningstar2.co.uk>
Date: Fri Jul 27 09:57:24 2018 +0100
Make \sys_shell_cp:nn slightly more restrictive
This then works without needing to worry about
Windows vs Unix issues.
>---------------------------------------------------------------
ef4cbad7127b5e14226a4e5247448043c719a0c1
l3kernel/l3candidates.dtx | 11 ++++++-----
1 file changed, 6 insertions(+), 5 deletions(-)
diff --git a/l3kernel/l3candidates.dtx b/l3kernel/l3candidates.dtx
index 099e6a5..882b4c2 100644
--- a/l3kernel/l3candidates.dtx
+++ b/l3kernel/l3candidates.dtx
@@ -965,14 +965,15 @@
% Execute \meta{tokens} through shell escape at shipout.
% \end{function}
%
-% \begin{function}[added = 2018-07-27]{\sys_shell_cp:nn}
+% \begin{function}[added = 2018-07-28]{\sys_shell_cp:nn}
% \begin{syntax}
% \cs{sys_shell_cp:nn} \Arg{source} \Arg{dest}
% \end{syntax}
% Copies the files specified in the \meta{source} (which may include
% wildcards) to the \meat{dest}. The file paths should be specified using
-% |/| as a path separator. If unrestricted shell escape is not enabled, no
-% action is attempted.
+% |/| as a path separator. Copying is \emph{not} recursive: only files at
+% the path level given are copied. If unrestricted shell escape is not
+% enabled, no action is attempted.
% \end{function}
%
% \begin{function}[added = 2018-07-27]{\sys_shell_mkdir:n}
@@ -3101,12 +3102,12 @@
{
\sys_if_platform_unix:T
{
- cp~-RLf~ \exp_not:N \tl_to_str:n {#1} ~
+ cp~-f~ \exp_not:N \tl_to_str:n {#1} ~
\exp_not:N \tl_to_str:n {#2}
}
\sys_if_platform_windows:T
{
- xcopy~/y~ \exp_not:N \@@_path_to_win:n {#1} ~
+ copy~/y~ \exp_not:N \@@_path_to_win:n {#1} ~
\exp_not:N \@@_path_to_win:n {#2}
}
}
More information about the latex3-commits
mailing list