'\" RCS: @(#) $Id$
'\"
.so man.macros
-.TH concat n "" Tcl "Tcl Built-In Commands"
+.TH concat n 8.3 Tcl "Tcl Built-In Commands"
.BS
'\" Note: do not modify the .SH NAME line immediately below!
.SH NAME
.SH DESCRIPTION
.PP
-This command treats each argument as a list and concatenates them
+This command joins each of its arguments together with spaces after
+trimming leading and trailing spaces from each of them. If all the
+arguments are lists, this has the same effect as concatenating them
into a single list.
-It also eliminates leading and trailing spaces in the \fIarg\fR's
-and adds a single separator space between \fIarg\fR's.
-It permits any number of arguments. For example,
-the command
+It permits any number of arguments. For example, the command
.CS
\fBconcat a b {c d e} {f {g h}}\fR
.CE
.CS
\fBa b c d e f {g h}\fR
.CE
+as its result, and
+.CS
+\fBconcat " a b {c " d " e} f"\fR
+.CE
+will return
+.CS
+\fBa b {c d e} f\fR
+.CE
as its result.
.PP
If no \fIarg\fRs are supplied, the result is an empty string.
+.SH "SEE ALSO"
+append(n), eval(n)
+
.SH KEYWORDS
concatenate, join, lists