Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2002-09-23
00:56 • Closed ticket [612786ffff]: replacement puts incorrect for 3 params plus 7 o... artifact: 568b6f37cf user: dgp
00:40 • Ticket [612786ffff]: 4 changes artifact: a8cc1523b6 user: dgp
2002-09-22
17:55 • Ticket [612786ffff]: 4 changes artifact: bef4ea970b user: pifpafpuf
10:49 • New ticket [612786ffff]. artifact: 48ae4a8d56 user: pifpafpuf

replacement puts incorrect for 3 params

Closed / Fixed612786ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 24 years ago
Descriptionplain2002-09-22 10:49:46
The option -nonewline is not honoured in 
tcltest::Replace::puts if there are 3 parameters.

Here is the script demonstrating the problem:

#------------------------------------------------------
package require tcltest
namespace import tcltest::test

test bugdemo {this test should not fail, but it does} {
  -body {
    puts -nonewline stdout bla
    puts -nonewline stdout bla
  }
  -output {blabla}
}
#--------------------------------------------------------
pifpafpufplain2002-09-22 17:55:28
Logged In: YES 
user_id=367359

I thought I find a button here to submit a patch to squash this
bug. There is none. I'll go over there to the patch-page and 
submit it there.
dgpplain2002-09-23 00:40:36
Logged In: YES 
user_id=80530


Here's a better demonstation:

test bugdemo {} -body {
    puts -nonewline stdout bla
    puts -nonewline stdout bla
} -output {blabla}

Yep, a bug.
dgpplain2002-09-23 00:56:42
Logged In: YES 
user_id=80530

Fixed by Patch 612788.
Fix will be in release 2.2.1.
Log in (anonymous is fine) to add a comment.