Skip to content

Commit

Permalink
Prevent global options in GREP_OPTIONS envvar from breaking transcr…
Browse files Browse the repository at this point in the history
…ipt. Fixes #166

Overrides global grep options that can cause problems, especially
`--color=always`
  • Loading branch information
jmurty committed May 26, 2023
1 parent 3d5f6b8 commit a825f9d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ system, you must also run the `--upgrade` command in each repository:

- Prevent `cd` commands printing out excess details when `CDPATH` is set (#156)

### Changed

- Prevent global options set in `GREP_OPTIONS` enviroment variable from
breaking transcrypt's use of grep (#166)

## [2.2.3] - 2023-03-09

### Fixed
Expand Down
5 changes: 5 additions & 0 deletions transcrypt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ set -euo pipefail
# that can be be found in the LICENSE file.
#

##### OVERRIDES

# Disable any global grep options, to avoid problems like '--colors=always'
GREP_OPTIONS=""

##### CONSTANTS

# the release version of this script
Expand Down

0 comments on commit a825f9d

Please sign in to comment.