Improve checks for existing command/proc #29

Closed
df wants to merge 13 commits from df/webif:df-commandcheck-patch into master
Owner

exists -command subsumes exists -proc

The latter test is used several times with the intent to check whether a proc or command of that name exists, rather than some proc that is overriding a synonymous command. The former version would be more correct.

Eg:

  • exists -proc class - currently class is a proc but this may not always be so;
  • exists -proc sqlite3.open - sqlite3.open is a command and not a proc.
`exists -command` subsumes `exists -proc` The latter test is used several times with the intent to check whether a proc or command of that name exists, rather than some proc that is overriding a synonymous command. The former version would be more correct. Eg: * `exists -proc class` - currently `class` is a proc but this may not always be so; * `exists -proc sqlite3.open` - `sqlite3.open` is a command and not a proc.
df added 12 commits 2020-12-31 00:00:45 +00:00
b780b3dda8 exists -proc -> exists -command
`exists -command` subsumes `exists -proc`

This test is generally checking whether the command exists, rather than some proc that is overriding it.

Currently `class` is a proc but this may not always be so.
397d383051 exists -proc -> exists -command
`sqlite3.open` is currently a command, so the test for it as a proc fails, presumably not what was intended.
6fc0acf22f exists -proc -> exists -command
Test was failing for `sqlite3.open`
1c5698388c exists -proc -> exists -command
Test was failing for `sqlite3.open`.
6ac4216d44 exists -proc -> exists -command
Test was failing for `sqlite3.open`.
0f678564b8 exists -proc -> exists -command
Test was failing for `sqlite3.open`.
9779b82bd1 exists -proc -> exists -command
Test was failing for `sqlite3.open`.
1d008a1bce exists -proc -> exists -command
Test was failing for `sqlite3.open`.
5f29ab2f4d exists -proc -> exists -command
Test was failing for `sqlite3.open`, `xconv`.
df added 1 commit 2020-12-31 00:01:37 +00:00
df changed title from df-commandcheck-patch to Improve checks for existing commnd/proc 2020-12-31 00:06:05 +00:00
df changed title from Improve checks for existing commnd/proc to Improve checks for existing command/proc 2020-12-31 00:06:12 +00:00
Owner

Squashed and merged

Squashed and merged
af123 closed this pull request 2021-02-24 12:45:45 +00:00

Pull request closed

Sign in to join this conversation.
No reviewers
No Label
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: hummypkg/webif#29
No description provided.