|
2014-09-05
| ||
| 09:01 | • Ticket [ccc2c2cc98] lreplace on an empty list produces an error where it didn... artifact: bcd28eab06 user: dkf | |
|
2001-04-05
| ||
| 06:03 | • Ticket [218675ffff] lreplace inconsistent with man page status still Closed ... artifact: f055572e4b user: dgp | |
|
2000-10-26
| ||
| 08:26 | • Closed ticket [218675ffff]. artifact: 0c01d8aa6d user: welch | |
| 01:04 | • New ticket [218675ffff]. artifact: 4016ec39a6 user: nobody | |
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.