Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 21bba1247e848c61219df71c27216bc513e48674
Ticket: 218812ffffffffffffffffffffffffffffffffff
the subst command seems broken
User & Date: nobody on 2000-10-26 01:05:49
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 2202 Bug
    Version: 8.1.1
    SubmitDate: '1999-06-11'
    LastModified: '1999-08-12'
    Severity: SER
    Status: Released
    Submitter: techsupp
    ChangedBy: hobbs
    RelatedBugIDs: 2535
    OS: Digital Unix
    OSVersion: 4.0e
    Machine: Other
    FixedDate: '1999-08-12'
    FixedInVersion: 8.2
    ClosedDate: '2000-10-25'
    
    
    Name:
    Stuart Midgley
    
    ReproducibleScript:
    File test:
        hello
        [return $st]
        there
        
        Output from tclsh8.0:
        canoepolo:~/tmp > tclsh8.0 
        % set txt [read [open test r]]
        hello
        [return $st]
        there
        
        % set st "stuart"
        stuart
        % subst $txt
        hello
        stuart
        there
        
        % 
        
        Output from tclsh8.1.1:
        canoepolo:~/tmp > bin/tclsh8.1 
        % set txt [read [open test r]]
        hello
        [return $st]
        there
        
        % set st "stuart"
        stuart
        % subst $txt
        hello
        stuartthere
        
        %
        
        I have also noticed some other severe problems with tcl8.1.1 .
        
        File test:
        hello
        [set hdl [open test2 r]
        set ttt [read ${hdl}]
        return "$st $ttt"]
        there
        
        File test2:
        Midgley
        
        From tclsh8.0:
        canoepolo:~/tmp > tclsh8.0
        % set txt [read [open test r]]
        hello
        [set hdl [open test2 r]
        set ttt [read ${hdl}]
        return "$st $ttt"]
        there
        
        % set st "stuart"
        stuart
        % subst $txt
        hello
        stuart Midgley
        
        there
        
        % 
        
        From tclsh8.1.1:
        canoepolo:~/tmp > bin/tclsh8.1
        % set txt [read [open test r]]
        hello
        [set hdl [open test2 r]
        set ttt [read ${hdl}]
        return "$st $ttt"]
        there
        
        % set st "stuart"
        stuart
        % subst $txt
        hello
        stuart Midgley
        n test2 r]
        set ttt 
        return "stuart Midgley
        "]
        there
        
        %
    
    ObservedBehavior:
    Subst just doesn't seem to work as it use to.
    
    
    
    This is fixed in the 8.2.0 release. 
    -- 08/12/1999 hobbs
    
  4. foundin changed to: "final: 8.1.1"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "the subst command seems broken"
  11. type changed to: "Bug"