Skip to content

Color-always on grep breaks CircleCI (and possibly other bash scripts) #29

@sdspikes

Description

@sdspikes

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions