dejagnu
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

PATCH: fix syntax error in lib/tip.exp


From: Ben Elliston
Subject: PATCH: fix syntax error in lib/tip.exp
Date: Sat, 8 Dec 2018 08:22:08 +1100
User-agent: NeoMutt/20170609 (1.8.3)

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  <address@hidden>

        * 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
                    }
                }

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]