file rootname doesn't work as expected
Closed / Fixed218600ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:02:57
OriginalBugID: 1405 Bug
Version: 8.0.4
SubmitDate: '1999-03-02'
LastModified: '1999-08-07'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: hobbs
OS: Other
OSVersion: Solaris, Windows NT, Linux ...
Machine: NA
FixedDate: '1999-08-07'
FixedInVersion: 8.2
ClosedDate: '2000-10-25'
Name:
R. Brunner
ReproducibleScript:
% file rootname a..b
a
% file extension a..b
..b
ObservedBehavior:
% file rootname a..b
a
% file extension a..b
..b
docu says:
file rootname name
Returns all of the characters in name up to but not
including the last ``.'' character in the last com-
ponent of name. If the last component of name doesn't
contain a dot, then returns name.
file extension name
Returns all of the characters in name after and includ-
ing the last dot in the last element of name. If there
is no dot in the last element of name then returns the
empty string.
DesiredBehavior:
% file rootname a..b
a.
% file extension a..b
.b
This was changed to the desired behavior in or before 8.2b1.
-- 08/07/1999 hobbs
welch Closed ticket [218600ffff].
[History diff]2000-10-26 08:25:10
dgp Ticket [218600ffff]: 3 changes
[History diff]2001-04-16 23:15:02
Log in (anonymous is fine) to add a comment.