diff options
author | vincentdarley <vincentdarley> | 2003-07-07 08:57:58 (GMT) |
---|---|---|
committer | vincentdarley <vincentdarley> | 2003-07-07 08:57:58 (GMT) |
commit | b2dec639457530aa167e1d9929cce2ed56f415fb (patch) | |
tree | 21f83201f63f64c55d0b12c93a9ab5e228cbef28 | |
parent | 3d9d117b813f5c270d6580bd83f5dcbe5d68aa79 (diff) | |
download | tcl-b2dec639457530aa167e1d9929cce2ed56f415fb.zip tcl-b2dec639457530aa167e1d9929cce2ed56f415fb.tar.gz tcl-b2dec639457530aa167e1d9929cce2ed56f415fb.tar.bz2 |
file tail documentation clarification
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | doc/file.n | 10 |
2 files changed, 10 insertions, 4 deletions
@@ -1,3 +1,7 @@ +2003-06-23 Vince Darley <vincentdarley@users.sourceforge.net> + + * doc/file.n: clarification of 'file tail' behaviour [Bug 737977] + 2003-07-04 Donal K. Fellows <fellowsd@cs.man.ac.uk> * doc/expr.n: Tighten up the wording of some operations. [Bug 758488] @@ -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 . |