Skip to content
Tcl Source Code View Ticket
Login

View Ticket

lreplace inconsistent with man page

Closed / Fixed218675ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 26 years ago
Descriptionplain2000-10-26 01:04:00
OriginalBugID: 1705 Bug
Version: 8.0p2
SubmitDate: '1999-04-05'
LastModified: '2000-01-21'
Severity: LOW
Status: Released
Submitter: pat
ChangedBy: ericm
RelatedBugIDs: 2005
OS: All
Machine: Other
FixedDate: '2000-01-21'
FixedInVersion: 8.3
ClosedDate: '2000-10-25'


Name:
Mark Patton

Comments:
This seems to be a problem with empty lists.
    With a non-empty list the script fails as expected
    when given an out of bound index.

ReproducibleScript:
lreplace {} 0 0

ObservedBehavior:
The script doesn't fail like it should. The man page indicates
    that element 0 must exist for the command to work.

DesiredBehavior:
The script should fail complaining about element 0
    not being present.



The doc's were incorrect; this is the desired behavior.  I corrected the information on the man page for 8.3.

- eric

-- 01/21/2000 ericm
welch Closed ticket [218675ffff]. [History diff]2000-10-26 08:26:12
dgp Ticket [218675ffff]: 3 changes [History diff]2001-04-05 06:03:54
Log in (anonymous is fine) to add a comment.