Overview
| Artifact ID: | 4e2f2cc3b5f0784fd5bbdae9c1548d3c1f34ba0b |
|---|---|
| Ticket: | 1224888fffffffffffffffffffffffffffffffff
possible to have an empty info nameofexecutable |
| User & Date: | davidw on 2005-06-21 21:43:36 |
Changes
- icomment:
Logged In: YES user_id=240 Quick patch inline: This seems to fix the problem, but I don't know if it causes others. --- tclUnixFile.c 1 Dec 2004 23:18:55 -0000 1.44 +++ tclUnixFile.c 21 Jun 2005 14:42:29 -0000 @@ -120,8 +120,12 @@ p++; } } - TclSetObjNameOfExecutable(Tcl_NewObj(), NULL); - goto done; + /* It's not in the path, so just use it in the current working + * directory. */ + Tcl_DStringSetLength(&buffer, 0); + name = Tcl_DStringAppend(&buffer, "./", -1); + name = Tcl_DStringAppend(&buffer, argv0, -1); + goto gotName; - login: "davidw"
- mimetype: "text/plain"
- username: "davidw"