Overview
| Artifact ID: | 9d39f74a2ed8df914437648b5e363a122b0a00cf84cfb61f7015e192a172beba |
|---|---|
| Ticket: | ee7f99d84e8b324ff34d583f50d02f5c7a877aa4
unable to execute tcl/library/clock.tcl file |
| User & Date: | sebres on 2018-11-19 18:18:04 |
Changes
- closedate changed to: "2458442.26255745"
- closer changed to: "sebres"
- icomment:
Command "source" accepts options now, thus can be used with 1 and 3 arguments: <code><pre style="padding-left:10pt"> source fileName source -encoding encodingName fileName </pre></code> Your perl script seems to parse source-command incorrectly if found "source" command that has 3 args, so it does not wrap it correctly. BTW. proper tcl "wrapper-template" for source (that simply ignore encoding param) looks like: <code><pre style="padding-left:10pt"> proc ::source {args} { set fn [lindex $args end] puts "proc source called for ($fn)" } </pre></code> Additionally note, that if your script evaluates Tcl-scripts and somewhere within "clock" ensemble is used, it may auto-load library/clock.tcl using "source" command (lazy loading on demand). You can avoid it also, if you call "clock format 0" before you create your own resp. overwrite it with own wrapper for the "source" command. Thus closed as 3rd party issue. - login: "sebres"
- mimetype: "text/x-fossil-wiki"
- resolution changed to: "Invalid"
- status changed to: "Closed"