colored-man-pages: force env command (#8551)

Invoke `env` via `command` to ignore shell functions and aliases.
This commit is contained in:
James Wright 2020-01-19 09:47:28 -07:00 committed by Marc Cornellà
parent ce298d090b
commit 530056d50d

View file

@ -17,7 +17,7 @@ EOF
fi fi
function colored() { function colored() {
env \ command env \
LESS_TERMCAP_mb=$(printf "\e[1;31m") \ LESS_TERMCAP_mb=$(printf "\e[1;31m") \
LESS_TERMCAP_md=$(printf "\e[1;31m") \ LESS_TERMCAP_md=$(printf "\e[1;31m") \
LESS_TERMCAP_me=$(printf "\e[0m") \ LESS_TERMCAP_me=$(printf "\e[0m") \