summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorvincentdarley <vincentdarley>2003-07-07 08:57:58 (GMT)
committervincentdarley <vincentdarley>2003-07-07 08:57:58 (GMT)
commitb2dec639457530aa167e1d9929cce2ed56f415fb (patch)
tree21f83201f63f64c55d0b12c93a9ab5e228cbef28 /doc
parent3d9d117b813f5c270d6580bd83f5dcbe5d68aa79 (diff)
downloadtcl-b2dec639457530aa167e1d9929cce2ed56f415fb.zip
tcl-b2dec639457530aa167e1d9929cce2ed56f415fb.tar.gz
tcl-b2dec639457530aa167e1d9929cce2ed56f415fb.tar.bz2
file tail documentation clarification
Diffstat (limited to 'doc')
-rw-r--r--doc/file.n10
1 files changed, 6 insertions, 4 deletions
diff --git a/doc/file.n b/doc/file.n
index 3c46d88..ce699aa 100644
--- a/doc/file.n
+++ b/doc/file.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: file.n,v 1.24 2003/05/14 19:21:22 das Exp $
+'\" RCS: @(#) $Id: file.n,v 1.25 2003/07/07 08:57:58 vincentdarley Exp $
'\"
.so man.macros
.TH file n 8.3 Tcl "Tcl Built-In Commands"
@@ -393,9 +393,11 @@ not belong to any filesystem, an error is generated.
.TP
\fBfile tail \fIname\fR
.
-Returns all of the characters in \fIname\fR after the last directory
-separator. If \fIname\fR contains no separators then returns
-\fIname\fR.
+Returns all of the characters in the last filesystem component of
+\fIname\fR. Any trailing directory separator in \fIname\fR is ignored.
+If \fIname\fR contains no separators then returns \fIname\fR. So,
+\fBfile tail a/b\fR, \fBfile tail a/b/\fR and \fBfile tail b\fR all
+return \fBb\fR.
.TP
\fBfile type \fIname\fR
.