]> Cypherpunks repositories - gostls13.git/commitdiff
gc: fix mkopnames and color grep interaction
authorRuss Cox <rsc@golang.org>
Wed, 10 Feb 2010 08:44:43 +0000 (00:44 -0800)
committerRuss Cox <rsc@golang.org>
Wed, 10 Feb 2010 08:44:43 +0000 (00:44 -0800)
Fixes #406.

R=adg
CC=golang-dev
https://golang.org/cl/207053

src/cmd/gc/mkopnames

index a161817f9cddda5da01fb53f1961565f745fdba9..fb2ceec81f87865c1b64f7b3d9a522b4e9ba3a9c 100755 (executable)
@@ -3,6 +3,10 @@
 # Use of this source code is governed by a BSD-style
 # license that can be found in the LICENSE file.
 
+# Disable colored grep if user has it set to --color=always.
+# (Arguably user error.)
+export GREP_OPTIONS=""
+
 echo '// auto generated by mkopnames'
 echo 'static char*'
 echo 'opnames[] = '