My shell does not support colours and consequently I set the environmental variable TERM=dumb to instruct programs never to colourise output.
However, even when I pass --color never to rg, the error output includes colour escape codes as can be seen below:
% rg --color never -asd
�[1;31merror:�[0m Found argument '�[33m-d�[0m' which wasn't expected, or isn't valid in this context
USAGE:
rg [OPTIONS] <pattern> [<path> ...]
rg [OPTIONS] [-e PATTERN | -f FILE ]... [<path> ...]
rg [OPTIONS] --files [<path> ...]
rg [OPTIONS] --type-list
For more information try �[32m--help�[0m
My shell does not support colours and consequently I set the environmental variable
TERM=dumbto instruct programs never to colourise output.However, even when I pass
--color neverto rg, the error output includes colour escape codes as can be seen below: