Properly avoid aliases when invoking grep. Using $(which grep) instead of plain grep does not avoid alias interference, it merely trades problems when "grep" is an alias for problems when "which" is an alias (both are commonly defined as aliases).
Properly avoid aliases when invoking grep. Using $(which grep) instead of plain grep does not avoid alias interference, it merely trades problems when "grep" is an alias for problems when "which" is an alias (both are commonly defined as aliases).

A more reliable way to turn off alias expansion is to simply quote the command name, which is what I'm doing here.

--
MOS_MIGRATED_REVID=132338563

ButterflyNetwork/bazel,variac/bazel,safarmer/bazel,werkt/bazel,mbrukman/bazel,variac/bazel,cushon/bazel,iamthearm/bazel,spxtr/bazel,hermione521/bazel,mikelikespie/bazel,snnn/bazel,safarmer/bazel,Asana/bazel,mikelikespie/bazel,mikelikespie/bazel,kchodorow/bazel-1,iamthearm/bazel,ButterflyNetwork/bazel,cushon/bazel,bazelbuild/bazel,mikelikespie/bazel,cushon/bazel,perezd/bazel,werkt/bazel,variac/bazel,hermione521/bazel,damienmg/bazel,Asana/bazel,bazelbuild/bazel,davidzchen/bazel,werkt/bazel,ulfjack/bazel,davidzchen/bazel,ButterflyNetwork/bazel,mikelikespie/bazel,cushon/bazel,kchodorow/bazel-1,kchodorow/bazel,mrdomino/bazel,mbrukman/bazel,werkt/bazel,katre/bazel,hermione521/bazel,akira-baruah/bazel,zhexuany/bazel,cushon/bazel,mbrukman/bazel,spxtr/bazel,kchodorow/bazel,mikelikespie/bazel,davidzchen/bazel,safarmer/bazel,aehlig/bazel,kchodorow/bazel,juhalindfors/bazel-patches,meteorcloudy/bazel,damienmg/bazel,kchodorow/bazel-1,spxtr/bazel,damienmg/bazel,LuminateWireless/bazel,aehlig/bazel,akira-baruah/bazel,twitter-forks/bazel,davidzchen/bazel,twitter-forks/bazel,dslomov/bazel-windows,LuminateWireless/bazel,katre/bazel,juhalindfors/bazel-patches,ButterflyNetwork/bazel,aehlig/bazel,hermione521/bazel,dslomov/bazel,twitter-forks/bazel,snnn/bazel,bazelbuild/bazel,hermione521/bazel,davidzchen/bazel,Asana/bazel,mbrukman/bazel,safarmer/bazel,zhexuany/bazel,mrdomino/bazel,iamthearm/bazel,ulfjack/bazel,variac/bazel,perezd/bazel,perezd/bazel,snnn/bazel,dropbox/bazel,variac/bazel,snnn/bazel,ulfjack/bazel,kchodorow/bazel,katre/bazel,zhexuany/bazel,LuminateWireless/bazel,mrdomino/bazel,juhalindfors/bazel-patches,akira-baruah/bazel,LuminateWireless/bazel,dslomov/bazel-windows,aehlig/bazel,ulfjack/bazel,dslomov/bazel-windows,katre/bazel,dropbox/bazel,snnn/bazel,juhalindfors/bazel-patches,akira-baruah/bazel,dropbox/bazel,meteorcloudy/bazel,perezd/bazel,mrdomino/bazel,Asana/bazel,perezd/bazel,katre/bazel,kchodorow/bazel-1,iamthearm/bazel,aehlig/bazel,Asana/bazel,meteorcloudy/bazel,zhexuany/bazel,hermione521/bazel,variac/bazel,mrdomino/bazel,safarmer/bazel,ulfjack/bazel,juhalindfors/bazel-patches,Asana/bazel,spxtr/bazel,zhexuany/bazel,ButterflyNetwork/bazel,twitter-forks/bazel,kchodorow/bazel,juhalindfors/bazel-patches,zhexuany/bazel,mbrukman/bazel,akira-baruah/bazel,davidzchen/bazel,meteorcloudy/bazel,kchodorow/bazel,perezd/bazel,bazelbuild/bazel,kchodorow/bazel,dslomov/bazel-windows,bazelbuild/bazel,twitter-forks/bazel,dropbox/bazel,dslomov/bazel,cushon/bazel,bazelbuild/bazel,akira-baruah/bazel,mrdomino/bazel,damienmg/bazel,werkt/bazel,LuminateWireless/bazel,LuminateWireless/bazel,safarmer/bazel,aehlig/bazel,ButterflyNetwork/bazel,dropbox/bazel,dslomov/bazel,kchodorow/bazel-1,iamthearm/bazel,variac/bazel,kchodorow/bazel-1,dslomov/bazel,juhalindfors/bazel-patches,twitter-forks/bazel,dslomov/bazel,werkt/bazel,spxtr/bazel,meteorcloudy/bazel,aehlig/bazel,twitter-forks/bazel,dslomov/bazel,meteorcloudy/bazel,dslomov/bazel-windows,ulfjack/bazel,meteorcloudy/bazel,katre/bazel,damienmg/bazel,Asana/bazel,damienmg/bazel,davidzchen/bazel,snnn/bazel,damienmg/bazel,dslomov/bazel-windows,spxtr/bazel,iamthearm/bazel,perezd/bazel,spxtr/bazel,ulfjack/bazel,mbrukman/bazel,dropbox/bazel,snnn/bazel,dslomov/bazel