Skip to content
Tcl Source Code View Ticket
Login

View Ticket

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.