summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/l3experimental/l3sys-shell/l3sys-shell.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/l3experimental/l3sys-shell/l3sys-shell.dtx')
-rw-r--r--Master/texmf-dist/source/latex/l3experimental/l3sys-shell/l3sys-shell.dtx30
1 files changed, 17 insertions, 13 deletions
diff --git a/Master/texmf-dist/source/latex/l3experimental/l3sys-shell/l3sys-shell.dtx b/Master/texmf-dist/source/latex/l3experimental/l3sys-shell/l3sys-shell.dtx
index a1b7af274ba..053a119358a 100644
--- a/Master/texmf-dist/source/latex/l3experimental/l3sys-shell/l3sys-shell.dtx
+++ b/Master/texmf-dist/source/latex/l3experimental/l3sys-shell/l3sys-shell.dtx
@@ -1,6 +1,8 @@
% \iffalse meta-comment
%
-%% File: l3sys-shell.dtx Copyright(C) 2018 The LaTeX3 Project
+%% File: l3sys-shell.dtx
+%
+% Copyright (C) 2018,2019 The LaTeX3 Project
%
% It may be distributed and/or modified under the conditions of the
% LaTeX Project Public License (LPPL), either version 1.3c of this
@@ -44,7 +46,7 @@
% }^^A
% }
%
-% \date{Released 2018-11-19}
+% \date{Released 2019-01-28}
%
% \maketitle
%
@@ -134,7 +136,7 @@
%
% \begin{macrocode}
%<*package>
-\ProvidesExplPackage{l3sys-shell}{2018-11-19}{}
+\ProvidesExplPackage{l3sys-shell}{2019-01-28}{}
{L3 Experimental system shell functions}
%</package>
% \end{macrocode}
@@ -308,7 +310,11 @@
{
\sys_if_shell_unrestricted:T
{
- \exp_not:N \tl_set_from_shell:Nnn \exp_not:N \l_@@_tmp_tl
+ \exp_not:N \sys_shell_get:nnN
+ {
+ \sys_if_platform_unix:T { pwd }
+ \sys_if_platform_windows:T { cd }
+ }
{
\char_set_catcode_other:N \exp_not:N \\
\char_set_catcode_other:N \exp_not:N \#
@@ -316,10 +322,7 @@
\char_set_catcode_other:N \exp_not:N \%
\char_set_catcode_space:N \exp_not:N \ %
}
- {
- \sys_if_platform_unix:T { pwd }
- \sys_if_platform_windows:T { cd }
- }
+ \exp_not:N \l_@@_tmp_tl
\str_set:NV #1 \exp_not:N \l_@@_tmp_tl
}
}
@@ -336,7 +339,11 @@
{
\sys_if_shell_unrestricted:T
{
- \exp_not:N \tl_set_from_shell:Nnn \exp_not:N \l_@@_tmp_tl
+ \exp_not:N \sys_shell_get:nnN
+ {
+ \sys_if_platform_unix:T { ls~-1~ #1 }
+ \sys_if_platform_windows:T { dir~/b~ #1 }
+ }
{
\ExplSyntaxOff
\char_set_catcode_other:N \exp_not:N \\
@@ -345,10 +352,7 @@
\char_set_catcode_other:N \exp_not:N \%
\char_set_catcode_other:n { 13 }
}
- {
- \sys_if_platform_unix:T { ls~-1~ #1 }
- \sys_if_platform_windows:T { dir~/b~ #1 }
- }
+ \exp_not:N \l_@@_tmp_tl
\str_set:NV \exp_not:N \l_@@_tmp_tl \exp_not:N \l_@@_tmp_tl
\seq_set_split:NnV #2 { \char_generate:nn { `\^^M } { 12 } }
\exp_not:N \l_@@_tmp_tl