From a9824cd47c1927ffc4eca040d60aecaa26130329 Mon Sep 17 00:00:00 2001 From: Daniel Martí Date: Fri, 10 Mar 2017 17:15:46 +0000 Subject: *.bash: always use the same string equality operator POSIX Shell only supports = to compare variables inside '[' tests. But this is Bash, where == is an alias for =. In practice they're the same, but the current form is inconsisnent and breaks POSIX for no good reason. Change-Id: I38fa7a5a90658dc51acc2acd143049e510424ed8 Reviewed-on: https://go-review.googlesource.com/38031 Reviewed-by: Ian Lance Taylor Run-TryBot: Ian Lance Taylor TryBot-Result: Gobot Gobot --- doc/articles/wiki/test.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/articles') diff --git a/doc/articles/wiki/test.bash b/doc/articles/wiki/test.bash index 8bbb734750..cec51fd3de 100755 --- a/doc/articles/wiki/test.bash +++ b/doc/articles/wiki/test.bash @@ -20,7 +20,7 @@ trap cleanup 0 INT rm -f get.bin final-test.bin a.out # If called with -all, check that all code snippets compile. -if [ "$1" == "-all" ]; then +if [ "$1" = "-all" ]; then for fn in *.go; do go build -o a.out $fn done -- cgit v1.3-5-g9baa