Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2003-07-07
16:00 • Ticket [737977ffff] file tail documentation problem status still Closed with... artifact: 9ed96202ce user: vincentdarley
16:00 • Closed ticket [737977ffff]. artifact: a2efa079bf user: vincentdarley
15:28 • Ticket [737977ffff]: 1 change artifact: 23e53f7bbc user: dkf
2003-06-25
03:04 • Ticket [737977ffff]: 6 changes artifact: 59e5612618 user: dkf
2003-05-15
23:08 • Ticket [737977ffff]: 2 changes artifact: dd8d5a7650 user: dgp
23:06 • Ticket [737977ffff]: 4 changes artifact: a79a893693 user: dgp
00:32 • New ticket [737977ffff]. artifact: 7ac703d273 user: tomk

file tail documentation problem

Closed / Fixed737977ffffffffffffffffffffffffffffffffffCreated 24 years agoUpdated 23 years ago
Descriptionplain2003-05-15 00:32:01
The man page for the 'file tail' command states:

"Returns all of the characters in name after the last
directory separator."

The example below illustrates that this does not occur
if the file name is null (i.e. "").

% tclsh
% set filename "dir1/dir2/"
dir1/dir2/
% file tail $filename
dir2
%
dgpplain2003-05-15 23:06:27
Logged In: YES 
user_id=80530


This has been the way [file tail]
works back to at least Tcl 7.5,
so if there's any change to be
made, it's probably just documentation
improvements.
dgp Ticket [737977ffff]: 2 changes [History diff]2003-05-15 23:08:37
dkfplain2003-06-25 03:04:04
Logged In: YES 
user_id=79902

As it has always worked like this and I've no real idea how
to fix it, dropping the prio...
dkf Ticket [737977ffff]: 1 change [History diff]2003-07-07 15:28:25
vincentdarleyplain2003-07-07 16:00:57
Logged In: YES 
user_id=32170

Clarified the documentation.
vincentdarley Ticket [737977ffff]: 2 changes [History diff]2003-07-07 16:00:58
Log in (anonymous is fine) to add a comment.