summaryrefslogtreecommitdiffstats
path: root/doc/puts.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2004-10-27 14:24:37 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2004-10-27 14:24:37 (GMT)
commitf2710bf0bb0c6ace5d1bc4f424b400537ffdb21c (patch)
treec19b22fbb2165682630fecbf3779e53b26c9002f /doc/puts.n
parent4c2d0f20bfa9108949678cf49bfdc58eedc7bb93 (diff)
downloadtcl-f2710bf0bb0c6ace5d1bc4f424b400537ffdb21c.zip
tcl-f2710bf0bb0c6ace5d1bc4f424b400537ffdb21c.tar.gz
tcl-f2710bf0bb0c6ace5d1bc4f424b400537ffdb21c.tar.bz2
More minor doc fixes
Diffstat (limited to 'doc/puts.n')
-rw-r--r--doc/puts.n18
1 files changed, 9 insertions, 9 deletions
diff --git a/doc/puts.n b/doc/puts.n
index f12e48f..39fee1a 100644
--- a/doc/puts.n
+++ b/doc/puts.n
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: puts.n,v 1.7 2004/04/30 15:29:03 dkf Exp $
+'\" RCS: @(#) $Id: puts.n,v 1.8 2004/10/27 14:24:37 dkf Exp $
'\"
.so man.macros
.TH puts n 7.5 Tcl "Tcl Built-In Commands"
@@ -71,25 +71,25 @@ via a file event that the channel is ready for more output data).
Write a short message to the console (or wherever \fBstdout\fR is
directed):
.CS
-puts "Hello, World!"
+\fBputs\fR "Hello, World!"
.CE
-
+.PP
Print a message in several parts:
.CS
-puts -nonewline "Hello, "
-puts "World!"
+\fBputs\fR -nonewline "Hello, "
+\fBputs\fR "World!"
.CE
-
+.PP
Print a message to the standard error channel:
.CS
-puts stderr "Hello, World!"
+\fBputs\fR stderr "Hello, World!"
.CE
-
+.PP
Append a log message to a file:
.CS
set chan [open my.log a]
set timestamp [clock format [clock seconds]]
-puts $chan "$timestamp - Hello, World!"
+\fBputs\fR $chan "$timestamp - Hello, World!"
close $chan
.CE