You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
#env
LESS = -R --use-color --color=d+1 --color=u+2
It gives the error message Invalid color string "+1 --color=u+2".
This one works as intended, using shortcut option names:
#env
LESS = -R --use-color -Dd+1 -Du+2
But if we put --use-color later in the options, it breaks again:
#env
LESS = -R -Dd+1 -Du+2 --use-color
It also breaks with short options and specifying background color:
#env
LESS = -R --use-color -Dd+1.2 -Du+3.4
From the command line, it works fine with long options (and a blank lesskey file):
less -R --use-color --color=d+1 --color=u+2
It seems the argument parser is not able to tell when the end of the color string is.
The text was updated successfully, but these errors were encountered:
christian-oudard
changed the title
Cannot use --color in lesskey file.
Cannot use multiple --color options in long format in a lesskey file.
Sep 18, 2022
christian-oudard
changed the title
Cannot use multiple --color options in long format in a lesskey file.
8-bit color strings break in a lesskey file.
Sep 18, 2022
Using Less version 608.
This lesskey file breaks:
It gives the error message
Invalid color string "+1 --color=u+2"
.This one works as intended, using shortcut option names:
But if we put
--use-color
later in the options, it breaks again:It also breaks with short options and specifying background color:
From the command line, it works fine with long options (and a blank lesskey file):
It seems the argument parser is not able to tell when the end of the color string is.
The text was updated successfully, but these errors were encountered: