|
2001-07-04
| ||
| 07:51 | • Ticket [426038ffff] variable has to have at least one arg status still Close... artifact: 45cc86dae4 user: hobbs | |
| 07:37 | • Ticket [426038ffff]: 6 changes artifact: 850ad99a25 user: dgp | |
| 04:09 | • Closed ticket [426038ffff]. artifact: ab38ce1e25 user: hobbs | |
|
2001-05-22
| ||
| 17:08 | • Ticket [426038ffff]: 1 change artifact: 2bc970ed56 user: dkf | |
| 03:13 | • Ticket [426038ffff]: 4 changes artifact: 5cf84eb4c0 user: davidw | |
| 03:13 | • Add attachment tcl.diff to ticket [426038ffff] artifact: 1ffe4f4d19 user: davidw | |
|
2001-05-21
| ||
| 20:13 | • New ticket [426038ffff] variable has to have at least one arg. artifact: cbdfe0ca6a user: davidw | |
variable has to have at least one arg
Closed / Fixed426038ffffffffffffffffffffffffffffffffffCreated 26 years agoUpdated 25 years ago
Descriptionplain2001-05-21 20:13:15
@ashland [~] $ tclsh tclsh8.3 [~]variable tclsh8.3 [~] It should produce an error: % variable wrong # args: should be "variable ?name value...? name ?value?"
davidwplain2001-05-22 03:13:16
File Added - 6517: /home/davidw/tcl.diff
dkf Ticket [426038ffff]: 1 change
[History diff]2001-05-22 17:08:41
hobbsplain2001-07-04 04:09:51
Logged In: YES user_id=72656 Strictly speaking, the command is defined to accept no arguments and do nothing. I don't know what the value of that is, but changing it might effect someone that was doing something silly like: eval variable $args
dgpplain2001-07-04 07:37:19
Logged In: YES user_id=80530 I disagree, Jeff. Looking carefully at the SYNOPSIS of the [variable] man page: variable ?name value...? name ?value? it is indicated that [variable] needs at least one "name" argument. [variable] is acting contrary to that documentation, so there *is* a bug. My opinion: anyone counting on no arguments to [variable] working is relying on undocumented behavior and deserves whatever incompatibility they suffer. But, I'd accept an update to the docs to match the behavior as well.
hobbsplain2001-07-04 07:51:52
Logged In: YES user_id=72656 Doh, David and Don are correct. I was led astray by seeing the first arg as a '?', not noting the later required 'name' (weird). I've added the patch to 8.4a3 with tests (nothing was expecting the no args in the test suite).
Log in (anonymous is fine) to add a comment.
Attachments:
- tcl.diff [download] added by davidw on 2001-05-22 03:13:16. [details]