summaryrefslogtreecommitdiff
path: root/Master/texmf
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf')
-rwxr-xr-xMaster/texmf/scripts/texlive/tlmgr.pl8
1 files changed, 6 insertions, 2 deletions
diff --git a/Master/texmf/scripts/texlive/tlmgr.pl b/Master/texmf/scripts/texlive/tlmgr.pl
index 5f049a10117..0d939e5297f 100755
--- a/Master/texmf/scripts/texlive/tlmgr.pl
+++ b/Master/texmf/scripts/texlive/tlmgr.pl
@@ -260,8 +260,12 @@ sub main {
}
# in some cases LESSPIPE of less breaks control characters
# and the output of pod2usage is broken.
- # We set LESS=-R in the environment and unset LESSPIPE to be sure
- $ENV{'LESS'} = "-R";
+ # We add/set LESS=-R in the environment and unset LESSPIPE to be sure
+ if (defined($ENV{'LESS'})) {
+ $ENV{'LESS'} .= " -R";
+ } else {
+ $ENV{'LESS'} = "-R";
+ }
delete $ENV{'LESSPIPE'};
delete $ENV{'LESSOPEN'};
if ($action && ($action ne "help")) {