OSDN Git Service

Updated to tcl 8.4.1
[pf3gnuchains/sourceware.git] / tcl / doc / concat.n
index 6124f54..70e1f61 100644 (file)
@@ -8,7 +8,7 @@
 '\" 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
@@ -19,12 +19,11 @@ concat \- Join lists together
 
 .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
@@ -32,9 +31,20 @@ will return
 .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