Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2001-04-21
08:16 • Ticket [218149ffff] while command runs forever status still Closed with 4 ot... artifact: 75edb00871 user: dgp
2000-10-26
08:15 • Closed ticket [218149ffff]. artifact: 82d4dcd031 user: welch
00:53 • New ticket [218149ffff]. artifact: c9b5c84cbd user: nobody

while command runs forever

Closed / Invalid218149ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:53:46
OriginalBugID: 2146 Bug
Version: 8.1.1
SubmitDate: '1999-06-03'
LastModified: '1999-07-16'
Severity: CRIT
Status: Closed
Submitter: techsupp
ChangedBy: redman
OS: Windows 95
Machine: X86
FixedDate: '2000-10-25'
ClosedDate: '1999-07-16'


Name:
Gerald Jean Francis Banon

CVS:
May 27, 1999

ReproducibleScript:
while [file exists fileName] {}

ObservedBehavior:
This command runs forever even when the file named fileName is deleted
    from the file system by another application.

DesiredBehavior:
The while command should terminates when the file named fileName is
    deleted
    from the file system.
    This command is working properly with version 8.0p2



Correct behavior.  The []'s gets called once, returns 1 and you get:
  while 1 {...}

Corrected script would be:

   while {[file exists filename]} {}

 
-- 07/16/1999 redman
welch Closed ticket [218149ffff]. [History diff]2000-10-26 08:15:56
dgp Ticket [218149ffff]: 4 changes [History diff]2001-04-21 08:16:19
Log in (anonymous is fine) to add a comment.