From ab86727f3eb91736bc74b92befd576b7e0213462 Mon Sep 17 00:00:00 2001 From: Joaquin Casares Date: Fri, 1 Jun 2018 18:47:32 -0500 Subject: [PATCH] CASSANDRA-14487 unset GREP_OPTIONS --- bin/cassandra | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/bin/cassandra b/bin/cassandra index 006c6aee925e..b09a5b7f9e6b 100755 --- a/bin/cassandra +++ b/bin/cassandra @@ -65,6 +65,12 @@ # NB: Developers should be aware that this script should remain compatible with # POSIX sh and Solaris sh. This means, in particular, no $(( )) and no $( ). +# Unset any grep options that may include `--color=always` per say. +# Using `unset GREP_OPTIONS` will also work on the non-deprecated use case +# of setting a new grep alias. +# See CASSANDRA-14487 for more details. +unset GREP_OPTIONS + # If an include wasn't specified in the environment, then search for one... if [ "x$CASSANDRA_INCLUDE" = "x" ]; then # Locations (in order) to use when searching for an include file.