]> Cypherpunks repositories - gostls13.git/commitdiff
build: fix noclobber
authorRuss Cox <rsc@golang.org>
Thu, 28 Jul 2011 23:38:14 +0000 (19:38 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 28 Jul 2011 23:38:14 +0000 (19:38 -0400)
I got it backwards last time, and somehow
that was leaking into the parent shell?

R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/4826054

src/env.bash

index a01a03e45c1da313761cd84d24b97a9a65619624..de446bf479ec3f310cd1cc5dcb1073e6a99031a2 100644 (file)
@@ -89,9 +89,9 @@ if bison --version 2>&1 | grep 'bison++' >/dev/null 2>&1; then
 fi
 
 # Issue 2020: some users configure bash to default to
-#      set +o noclobber
+#      set -o noclobber
 # which makes >x fail if x already exists.  Restore sanity.
-set -o noclobber
+set +o noclobber
 
 # Tried to use . <($MAKE ...) here, but it cannot set environment
 # variables in the version of bash that ships with OS X.  Amazing.