Overview
| Artifact ID: | c78e45ca1f6c5eb0e513bc370b184d08aa785d4622aecb4d1f14bc1dddbcfef6 |
|---|---|
| Ticket: | 775ee885603d3d09b5984b1579630e9786f78928
upvar (used with wrong level) causes a segfault |
| User & Date: | sebres on 2019-09-06 15:03:57 |
Changes
- icomment:
Crossed... exactly my fix for upvar, Don (just without space before semicolon :) I'd like to fix uplevel too - new test-cases (uplevel-4.0.*) still failing. I've also a solution for that, but then it would conflict with uplevel-4.4 now: <pre> ==== uplevel-4.4 error: not enough args FAILED ==== Contents of test case: apply {{} { uplevel 1 }} ---- Result was: invalid command name "1" ---- Result should have been (exact matching): wrong # args: should be "uplevel ?level? command ?arg ...?" ==== uplevel-4.4 FAILED </pre> I'd expect that ?level? is optional where command is don't, so I'd really read it an intention to execute "1" here. Or am I wrong? BTW, several upvar tests failing if executed directly (<code>source upvar.test</code>), should we provide some constrain for direct execution (similar singleproc) or should we fix it using some relative level. - login: "sebres"
- mimetype: "text/x-fossil-wiki"