GitHub
06/23/2026, 12:55 AMTrying to redirect stderr to a file produces all the bash special characters for coloring. Maybe the coloring should only be enabled if the output is a tty?(From #3322 (comment)) For example:
$ meltano invoke tap-postgres 2>&1 | tee output.txt | head -n1
2022-06-10T15:14:02.964019Z [info ] Environment 'dev' is active
$ cat -A output.txt | head -n1
^[[2m2022-06-10T15:14:02.964019Z^[[0m [^[[32m^[[1minfo ^[[0m] ^[[1mEnvironment 'dev' is active^[[0m$
meltano/meltanoGitHub
06/23/2026, 12:55 AM