texlive[45014] Master/texmf-dist/scripts/texlive/tlmgr.pl: add option
commits+preining at tug.org
commits+preining at tug.org
Fri Aug 11 06:27:59 CEST 2017
Revision: 45014
http://tug.org/svn/texlive?view=revision&revision=45014
Author: preining
Date: 2017-08-11 06:27:59 +0200 (Fri, 11 Aug 2017)
Log Message:
-----------
add option autoflush to tlmgr shell (for tlshell)
Modified Paths:
--------------
trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
Modified: trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl
===================================================================
--- trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2017-08-11 00:21:23 UTC (rev 45013)
+++ trunk/Master/texmf-dist/scripts/texlive/tlmgr.pl 2017-08-11 04:27:59 UTC (rev 45014)
@@ -310,6 +310,9 @@
"function" => \&action_search
},
"shell" => {
+ "options" => {
+ "autoflush" => 1,
+ },
"function" => \&action_shell
},
"uninstall" => {
@@ -5872,6 +5875,9 @@
sub action_shell {
my $protocol = 1;
my $default_prompt = "tlmgr>";
+ if ($opts{'autoflush'}) {
+ $| = 1;
+ }
# we need to do an anonymous sub here otherwise the $default_prompt will get
# only fixed once and remain forever. With anonymous subs it is rebound
# on every call!
More information about the tex-live-commits
mailing list