|
export GREP_OPTIONS='--color=always' |
If you have a bash script (like CircleCI's CLI: https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci) that redirects the grep output into a file, you get escape characters for the coloring in the file, which in this case, broke the script in a very non-obvious way.
dotfiles/.bash_profile
Line 75 in 93a2e91
If you have a bash script (like CircleCI's CLI: https://circle-downloads.s3.amazonaws.com/releases/build_agent_wrapper/circleci) that redirects the grep output into a file, you get escape characters for the coloring in the file, which in this case, broke the script in a very non-obvious way.