DefaultExecHandle debug logging environment variables allows any containing Ansi formatting codes to bleed over

(christiantx) #1

When I run tasks with debug mode, DefaultExecHandle conveniently spits out all the environment variables for the command it’s running but I have some environment variables that contain ANSI escape sequences used in Man page coloring which cause all output from then on to continue whatever formatting happened to be last (in my case its always bold and underlined)

The variables aren’t in any type of order, if they were alphabetical I could at least create a variable named “zzz_reset” containing a reset sequence. If Gradle could issue an ansi reset after logging the environment variables I would be grateful.