diff options
-rwxr-xr-x | Master/texmf-dist/scripts/texlive/tlmgr.pl | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Master/texmf-dist/scripts/texlive/tlmgr.pl b/Master/texmf-dist/scripts/texlive/tlmgr.pl index 9a1dc2bb0c2..d925cc0f3cf 100755 --- a/Master/texmf-dist/scripts/texlive/tlmgr.pl +++ b/Master/texmf-dist/scripts/texlive/tlmgr.pl @@ -1196,6 +1196,12 @@ sub action_paper { $ENV{"TEXMFCONFIG"} = $texmfconfig; my $action = shift @ARGV; + if (!$action) { + # can only happen in shell mode, because otherwise we push paper onto the stack before + # going into the action_paper + $action = "paper"; + } + if ($action =~ m/^paper$/i) { # generic paper my $newpaper = shift @ARGV; if ($opts{"list"}) { # tlmgr paper --list => complain. |