PATCH: fix syntax error in lib/tip.exp

Ben Elliston <[email protected]>
Newsgroups gmane.comp.sysutils.dejagnu.general
Message-ID <[email protected]>
I have been running the ttclchecker syntax checker over the DejaGnu
sources and slowly fixing problems it identifies. Here's a patch for
the first one:

2018-12-08  Ben Elliston  <[email protected]>

	* lib/tip.exp (tip_open): Put braces around if expression.

diff --git a/lib/tip.exp b/lib/tip.exp
index 8e19178..9fb94dd 100644
--- a/lib/tip.exp
+++ b/lib/tip.exp
@@ -59,7 +59,7 @@ proc tip_open { hostname } {
 		    warning "Never got prompt."
 		    set result -1
 		    incr tries
-		    if $tries<=2 {
+		    if { $tries <= 2 } {
 			exp_continue
 		    }
 		}

_______________________________________________
DejaGnu mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/dejagnu
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEFS8+rdM1/2KWERKFZ9rcPj90NkkFAlwK5IAACgkQZ9rcPj90
NkkNDBAAlPvS7Ziawtcnz3tQgXv6JVMJbKbCgZiFSk4A1tARSH4CZ9JghvSLQIt2
tmGSTn9fLbCgZ35OvIfAhFRATM853395Qs8D2YmVBpIPM9ru2P30hcNwmleUbRQt
GL6dqOUNpAGMxsrRH7mXjMWtxd22ORuIDULCF181YBPnfZ7J5Av8wOiFl5qxTI2X
v/wijclm99c84rl700yo20WsRto3EgUBOqVQ3qMBioXMso9/Lm4AQnbt9/cQtuRA
o6POqRwI6UJlN/O/4acb5vU8EXhEQDeZC5Hk83tzptTw/LSaGfBS5TcUc+5Yroh5
WSu2ZdeJE8VUFC8/1bBnYr5wX7t0owApgLLf4A0XAllmIW4xv/NIVe3V9DjcyS6g
7jt4hA/IetsprQF2m9S7sruGOvJDEXF0hvOmL7Z1dfhU/mQIVvAu7ohz49hr2ajz
nUygCyYxhiKMrRYLnYQMWhTjAzJ/W6sxKDzzg6MptT7vI2A5ZsqT4gNnpQ57F9vu
8qmNEVeMx86xhLLZgZHk6mhDvUecaE4f+G/MZwI2ZqwBby/6wxLCiJ5srMVPozjb
7EwbXISI/YexA8gbRBELQwo8CHaXG6tdhHsC7ABLdUwpUTPrzAhakKall6+bqrKZ
Susu60Xc6DihS0qk5UMU+1GZenz2bzf6uFYRLm9mTko1I8antWg=
=6yGn
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.