Skip to content
Tcl Source Code View Ticket
Login

View Ticket

concat trims trailing \n

Closed / Fixed218059ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 00:52:40
OriginalBugID: 1483 Bug
Version: 8.0.4
SubmitDate: '1999-03-11'
LastModified: '1999-08-07'
Severity: MED
Status: Closed
Submitter: pat
ChangedBy: hobbs
OS: Solaris
Machine: Other
FixedDate: '2000-10-25'
ClosedDate: '1999-08-07'


Name:
Nancy Aten

Extensions:
none

CustomShell:
none

ReproducibleScript:
    pearl> tclsh
    tclsh
    % concat "a\n"
    a
    % concat "a\nb"
    a
    b
    
    



ObservedBehavior:
    \n's disappear. More:
    
    % set x a\n
    a
    
    % concat "a\n" b 
    a b
    % concat a\n b
    a b
    % concat a \n b
    a b
    % concat "a \n b"
    a 
     b
    % list a \n b
    a {
    } b
    % concat a\nb
    a
    b
    
    



DesiredBehavior:
    I expect to see:
    % concat "a\n"
    a
    
    %
    




This is the defined and documented behavior, that white space is
trimmed from each arg (although internal whitespace is preserved). 
-- 08/07/1999 hobbs
welch Closed ticket [218059ffff]. [History diff]2000-10-26 08:13:45
dgp Ticket [218059ffff]: 3 changes [History diff]2001-04-16 23:41:37
Log in (anonymous is fine) to add a comment.