Use [ x = y ] instead of [ x == y ] in shell scripts.
authorThomas Arendsen Hein <thomas@intevation.de>
Thu, 30 Mar 2006 18:43:46 +0200
changeset 2023 3bdd3bf17cfa
parent 2022 a59da8cc35e4
child 2024 6328445b0e71
Use [ x = y ] instead of [ x == y ] in shell scripts.
tests/run-tests
--- a/tests/run-tests	Wed Mar 29 22:58:34 2006 +0200
+++ b/tests/run-tests	Thu Mar 30 18:43:46 2006 +0200
@@ -20,7 +20,7 @@
 HGUSER="test"; export HGUSER
 HGRCPATH=""; export HGRCPATH
 
-if [ `echo -n HG` == "-n HG" ]
+if [ `echo -n HG` = "-n HG" ]
 then
     ECHO_N=echo
     NNL="\c"