Tcl Source Code

View Ticket
Login
Ticket UUID: 26649439c70869c27343cf00f492553c5a952791
Title: EIAS violation in [concat]
Type: Bug Version: all
Submitter: dgp Created on: 2021-04-12 15:14:15
Subsystem: 10. Objects Assigned To: dgp
Priority: 5 Medium Severity: Important
Status: Closed Last Modified: 2021-04-14 19:23:27
Resolution: Fixed Closed By: dgp
    Closed on: 2021-04-14 19:23:27
Description:
% list test
test
% list #
{#}
% concat [list test] [list #]
test #
% concat test {{#}}
test {#}
User Comments: dgp added on 2021-04-14 19:23:27:
Test and fix applied to active branches

dgp added on 2021-04-12 16:00:00:
Look again.  The [concat] command with the same arguments produces different results based on the ObjType of the arguments.  Standard EIAS violation.

Maybe it is clearer in this form:

% concat [list test] [list #]
test #
% concat test "{#}"
test {#}

It is the first one that is wrong.

jan.nijtmans added on 2021-04-12 15:41:17: (text/x-fossil-wiki)
<pre>
% concat test {#}
test #
</pre>

I don't see the problem