fix(colorize): bypass less aliases in colorize_less (#9593)

This commit is contained in:
Ruslan Sayfutdinov 2021-01-14 17:26:40 +00:00 committed by GitHub
parent 869eb20913
commit a3bdff694a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -96,7 +96,7 @@ colorize_less() {
# which assumes that his LESSOPEN has been executed.
local LESSCLOSE=""
LESS="$LESS" LESSOPEN="$LESSOPEN" LESSCLOSE="$LESSCLOSE" less "$@"
LESS="$LESS" LESSOPEN="$LESSOPEN" LESSCLOSE="$LESSCLOSE" command less "$@"
}
if [ -t 0 ]; then