]> Cypherpunks repositories - gostls13.git/commitdiff
env.bash: more quoting in case of spaces
authorRuss Cox <rsc@golang.org>
Sat, 6 Nov 2010 03:04:08 +0000 (23:04 -0400)
committerRuss Cox <rsc@golang.org>
Sat, 6 Nov 2010 03:04:08 +0000 (23:04 -0400)
R=r, r2
CC=golang-dev
https://golang.org/cl/2938041

src/env.bash

index 40a94d65fe9412c1f53b0d814c879de5565b687f..2518c4233e139b039f89e27424334dde89092b61 100644 (file)
@@ -17,7 +17,7 @@ fi
 DIR1=$(cd ..; pwd)
 DIR2=$(cd "$GOROOT"; pwd)
 if [ "$DIR1" != "$DIR2" ]; then
-       echo 'Suspicious $GOROOT '$GOROOT': does not match current directory.' 1>&2
+       echo 'Suspicious $GOROOT '"$GOROOT"': does not match current directory.' 1>&2
        exit 1
 fi
 
@@ -29,7 +29,7 @@ if [ ! -d "$GOBIN" -a "$GOBIN" != "$GOROOT/bin" ]; then
 fi
 
 export OLDPATH=$PATH
-export PATH=/bin:/usr/bin:$GOBIN:$PATH
+export PATH=/bin:/usr/bin:"$GOBIN":$PATH
 
 MAKE=make
 if ! make --version 2>/dev/null | grep 'GNU Make' >/dev/null; then