f



tcl 8.5.2 gives error on runtime arg "-c"

Hi.  I'm getting this error when launching a tcl script from a shell
with "-c some_argument" with tcl 8.5.2

Application initialization failed: bad window path name
"some_argument"

I've searched the manpage and several documentation sources and have
not found any restrictions over supplying runtime flag/arguments.  Is
this a bug or a hidden feature?
0
2/9/2009 8:32:43 PM
comp.lang.tcl 23429 articles. 2 followers. Post Follow

2 Replies
699 Views

Similar Articles

[PageSpeed] 42

dewuf wrote:
> Hi.  I'm getting this error when launching a tcl script from a shell
> with "-c some_argument" with tcl 8.5.2
> 
> Application initialization failed: bad window path name
> "some_argument"
> 
> I've searched the manpage and several documentation sources and have
> not found any restrictions over supplying runtime flag/arguments.  Is
> this a bug or a hidden feature?

see

http://www.tcl.tk/man/tcl8.5/UserCmd/wish.htm

use a -- to prevent the interp from even looking at the options

Bruce
0
2/9/2009 8:36:20 PM
On Feb 9, 2:36=A0pm, Bruce Hartweg <Bruce-DoNot...@example.com> wrote:
> dewuf wrote:
> > Hi. =A0I'm getting this error when launching a tcl script from a shell
> > with "-c some_argument" with tcl 8.5.2
>
> > Application initialization failed: bad window path name
> > "some_argument"
>
> > I've searched the manpage and several documentation sources and have
> > not found any restrictions over supplying runtime flag/arguments. =A0Is
> > this a bug or a hidden feature?
>
> see
>
> http://www.tcl.tk/man/tcl8.5/UserCmd/wish.htm
>
> use a -- to prevent the interp from even looking at the options
>
> Bruce

Ahhh.  Thanks.
0
2/9/2009 9:58:07 PM
Reply:

Similar Artilces:

"::tcl::tm::UnknownHandler ::tclPkgUnknown msgcat 1.4" caused by replacing Tcl 8.4.1 with 8.5.7
In the blog http://planet.larrythecow.org/archives/2009-07-26.html "The Twouble with Tcl" Iain Buchanan shows that redefining OPEN proc leads to the errors similar to what I am getting - when I replaced Tcl 8.4.1 with Tcl 8.5.7. In my case I don't know the exact root cause though ... Any ideas how I should proceed with debugging this issue ? Thanks, Alex tclsh c:/Tornado/host/resource/hutils/tcl/makeSymTbl.tcl ppc tmp.o symTbl.c invalid command name "::tcl::tm::UnknownHandler" while executing "::tcl::tm::UnknownHandler ::tclPkgUnknown msg...

problem with "file executable" on windows, tcl 8.5.2
ActiveState TCL 8.5.2, Windows XP SP2 'file executable' always returns 0, even on .exe and .bat when asked for a file on a network share: % info patchlevel 8.5.2 % set file L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe % file exists $file 1 % file readable $file 1 % file executable $file 0 % file executable {L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/simenu.bat} 0 However, when copying the files to local disk, the files are qualified as executable: % cp L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/simenu.bat d:/temp % file executable d:/temp/simenu.bat 1 % cp L:/ralf/si++aegis/si++.4.0.C443/bin/winnt/gen.exe d:/temp % file executable d:/temp/gen.exe 1 Also: % set argv0 D:/Programme/tcl/bin/tclsh85.exe % file executable $argv0 1 The L:/ Network Share is an Samba share mounted from a linux box. Are there any special requirements for the smb options? Thanks R' Ralf Fassel said on 24/04/2008 21:21: > ActiveState TCL 8.5.2, Windows XP SP2 > > 'file executable' always returns 0, even on .exe and .bat when asked > for a file on a network share: > The L:/ Network Share is an Samba share mounted from a linux box. I have opened a similar report some time ago for file readable on a Samba share. Still open. See: http://sourceforge.net/tracker/index.php?func=detail&aid=1613456&group_id=10894&...

Build error after upgrading from 8.2.1 to 8.5 &quot;Error 1055 occurred at Invoke Node...&quot;
After upgrading to 8.5, I'm getting the following error when trying to build an EXE: &nbsp; Visit the Request Support page at ni.com/ask to learn more about resolving this problem. Use the following information as a reference: Error 1055 occurred at Invoke Node in AB_Source_Library.lvclass:Close_Reference.vi-&gt;AB_Build.lvclass:Copy_Files.vi-&gt;AB_Application.lvclass:Copy_Files.vi-&gt;AB_Build.lvclass:Build.vi-&gt;AB_EXE.lvclass:Build.vi-&gt;AB_Engine_Build.vi-&gt;AB_Build_Invoke.vi-&gt;AB_Build_Invoke.vi.ProxyCaller Possible reason(s): LabVIEW:&nbsp;...

What is "error 8"
I set up an external serial modem using the Red Hat GUI networking tool as a generic modem device. However, when I hit the "Activate" button, I get the message, "Failed to activate device with error 8." Where can I find what "error 8" means? Thanks. No one responded, but for the benefit of any other newbies who encounter this problem, here is the solution: I looked in the System Log and saw that the modem did not find a dial tone. I plugged in a phone line, and the "Activate" command worked fine. (I had not realized that "Activate" meant "Connect.") Crooked River wrote: > I set up an external serial modem using the Red Hat GUI networking tool > as a generic modem device. However, when I hit the "Activate" button, > I get the message, "Failed to activate device with error 8." Where can > I find what "error 8" means? > System error numbers can be found in /usr/include/asm/errno.h The only problem is that there is no assurance that that is what the program is displaying. #define ENOEXEC 8 /* Exec format error */ does not sound like what you are really getting. The best bet would be to look at the source of the program that is producing that error message. Unfortunately, the scattered shell scripts, programs, and whatnot concerned with networking, especially dial-up networking is a spaghetti mess, and if your ...

Error using SOPC builder
I'm trying to make a SDRAM controller with SOPC builder, but when I change the data width to 8bits I get the following error.. Warning: Signal "az_be_n" of type "byteenable_n" and width 1 must have width of 2, 4, 8, 16, 32, 64, 128. I'm trying to make the system for a 64Mb SDR SDRAM, Micron MT48LC8M8A2P-75. Even when I select the Alliance AS4LC2M8S0-10 chip it does the same thing. So I'm guessing it has to do with a width of 8 bits. Thank you, Eric On Oct 18, 12:39 pm, sendt...@gmail.com wrote: > I'm trying to make a SDRAM controller with SOPC build...

What's wrong with "fconfigure stdout -encoding utf-8" on windows in Tcl 8.5.10
With my built 8.5.10 I tried to issue command "fconfigure stdout - encoding utf-8" to tclsh on WinXP, the tcl prompt then was shown as two dots instead of percentage sign, C:\>tclsh85t.exe % fconfigure stdout -encoding utf-8 =E2=80=A5date The current date is: 11/29/2011 Tue Enter the new date: (mm-dd-yy) time The system cannot accept the date entered. Enter the new date: (mm-dd-yy) =E2=80=A5 =E2=80=A5 So wonder what's wrong with fconfigure on stdout? Is that the issue? On Nov 29, 7:46=C2=A0am, "wrena...@gmail.com" <wrena...@gmail.com> wrote: > With my built 8.5.10 I tried to issue command "fconfigure stdout - > encoding utf-8" to tclsh on WinXP, the tcl prompt then was shown as > two dots instead of percentage sign, > > C:\>tclsh85t.exe > % fconfigure stdout -encoding utf-8 > =E2=80=A5date > The current date is: 11/29/2011 Tue > Enter the new date: (mm-dd-yy) time > The system cannot accept the date entered. > Enter the new date: (mm-dd-yy) > =E2=80=A5 > =E2=80=A5 > > So wonder what's wrong with fconfigure on stdout? Is that the issue? Short answer: Yes. Longer answer: The encoding in Windows is not UTF-8 but one of cp.... flavors. Question: what did you expect that to do? Mark On 29/11/2011 06:59, Mark Janssen wrote: > Short answer: Yes. > Longer answer: The encoding in Windows is not UTF-8 but one of cp.... > flavors. Also, the code that writes to the (genuine) ...

"runtime error!" when I use the "com" compiled by the com builder #2
My VB crashed with the message "runtime error! " "programme: " "..." When I test the examples provided by the "combulider "user mannul. my system is Win2000 matlab 7.0 what is the reason? Thanks for your time. Zhu ...

XPS 8.2 "UPDATE Tcl procedures"?
Hi, all. Can anyone tell me what "Running UPDATE Tcl procedures for OPTION PLATGEN_SYSLEVEL_UPDATE_PROC..." means, and what platgen actually does to the .tcl files? I'm wondering if this could be the cause of an issue I'm having with BRAM instances. Before, I could run a Base System with 1 or more MicroBlazes with any available size Local Memory each, and no other extra peripherals or software (merely for testing purposes), and it would build the bitstream just fine. Now, XPS generates this error with the same Base System straight from the Wizard (ML310 board v2p30ff896-6, ...

["a", "b", "c", "d"] to "a, b, c, d"?
I want to process each element of an array, but the last element should be handled special. Here is an example: def p_ary(ary) str = "" ary.each do |elem| str << elem << ", " end str.chomp!(", ") str end so p_ary(["a", "f", "x", "test"]) produces "a, f, x, test". The code works, but isn't there an easier and more general way for this behaviour? martinus On Tue, 06 Apr 2004 04:23:22 -0700, Martin wrote: > I want to process each element of an array, but the last ele...

quetion about "+=" and "runtime" #2
1.i saw "+=" in a program code,but i haven't see it before,neither can i find it in a cook,who can tell me the usage of "python0" 2.how can i know how long does a program run? ...

Any way to install a later "build" of 10.5.2 over 10.5.2 "GM"?
Hi all... My 10.5.2 load set is based on the 10.5.2 GM -- 9C31. We got a new MacBook Pro that has 10.5.2 9C2028 -- a later build of 10.5.2 (containing the CD/DVD Sharing among other stuff...) When "later" builds of the same version of 10.4.x came out, we were able to use Carbon Copy Cloner to copy over the GM version load set of 10.4.x (any version), then boot from the "later build but same version number" DVD and do an "upgrade" install over the GM version of 10.4.x 10.5 is not letting me do this. The installer is reporting that the hard...

TCL 8.5.6 invalid command name "clock"
Hello, I running a c++ application with an Tcl 8.5.5. interpreter. Now I try to update TCL to version 8.5.6. While running the application with TCL 8.5.6 I get the following error: invalid command name "clock" while executing "clock seconds" Is there something I might have overseen, or is this a bug in version 8.5.6. Thank you for help in advance. Kind Regards sindbad0815@googlemail.com wrote: > I running a c++ application with an Tcl 8.5.5. interpreter. Now I try > to > update TCL to version 8.5.6. While running the application with TCL > 8.5.6 I get the following error: > > invalid command name "clock" > while executing > "clock seconds" > > Is there something I might have overseen, or is this a bug in version > 8.5.6. Within that program, what value is returned from the Tcl_Init() call? -- | Don Porter Mathematical and Computational Sciences Division | | donald.porter@nist.gov Information Technology Laboratory | | http://math.nist.gov/~DPorter/ NIST | |______________________________________________________________________| On 16 Mrz., 16:38, Don Porter <d...@nist.gov> wrote: > sindbad0...@googlemail.com wrote: > > I running a c++ application with an Tcl 8.5.5. interpreter. Now I try > > to > > update TCL to version 8.5.6. While running the application =A0with TCL > > 8.5.6 I get the following e...

http::geturl returns "data error" with tcl 8.6
I have troubles using the http::geturl with RIPE's REST API. With TCL 8.5 it works: % puts $tcl_version 8.5 % package require http 2.7.5 % http::geturl http://www.hp.com/index.html ::http::1 % http::geturl http://rest.db.ripe.net/search ::http::2 % With 8.6 it doesn't: % puts $tcl_version 8.6 % package require http 2.8.7 % http::geturl http://www.hp.com/index.html ::http::1 % http::geturl http://rest.db.ripe.net/search data error % Why am I getting this "data error" back ? What specific Tcl 8.6 version ([info patchlevel]) ? 8.6.2 had some ...

missing "lappend" from tcl 8.4.2.0 help .chm
I just noticed this tonight when I went to cross reference the windows help on lappend ,with the Brent Welch's 4th edition text.I'm sure this was fixed in newer releases. Love the book ,it's lighter with thinner pages ,the 3rd ed got me started ,now the 4th ed is THE tcl book ! keep em coming Brent ,nice to see Jeff Hobbs credited on this one too ,thanks. NeuroS wrote on 06/08/03: > err if you do a search you will find it , > 'Built-In Commands - lappend manual page. > just not listed in with other list cmds. That is very confusing. lappend should be listed ...

Tcl 8,5 tutorial errata on page "More Examples Of Regular Expressions"
Hi, In the Tcl 8.5 tutorial, a page titled "More Examples Of Regular Expressions" may contain errata in the following Tcl code: " set string "Again and again and again ..." if { [regexp {(\y\w+\y).+\1} $string => word] } { puts "The word $word occurs at least twice" } " You can see that the command 'regexp' sets a value into a variable called '=>'. This can be proved by executing the following code: " set string "Again and again and again ..." if { [regexp {(\y\w+\y).+\1} $string => word] } { puts "The word $word occurs at least twice" } upvar #0 "=>" x puts "$x" " I guess that the author meant to write something else? It doesn't make sense to have a variable named "=>". Here's a link to the relevant page in the tutorial: http://www.tcl.tk/man/tcl8.5/tutorial/Tcl20a.html Thank you. On Tuesday, 12 November 2013 08:43:08 UTC+11, dor...@gmail.com wrote: > Hi, >=20 >=20 >=20 > In the Tcl 8.5 tutorial, a page titled "More Examples Of Regular Expressi= ons" may contain errata in the following Tcl code: >=20 >=20 >=20 > " >=20 >=20 >=20 > set string "Again and again and again ..." >=20 > if { [regexp {(\y\w+\y).+\1} $string =3D> word] } { >=20 > puts "The word $word occurs at least twic...

"Tcl/Tk 8.5 tutorial"
All the documentation at http://tcl.tk/man/ is available as *html.tar.gz except "Tcl/Tk 8.5 tutorial". Is there a reason or just an accident of history. I have ActiveTcl installed and its associated ActiveTclHelp8.6.chm . This trifocal wearing senior citizen finds it impossible to read comfortably. I prefer HTML as I have my browser configured for legibility. I wish to have the tutorial available on my machine. >=20 > I have ActiveTcl installed and its associated=20 > ActiveTclHelp8.6.chm . This trifocal wearing senior citizen finds=20 > it impossible to read comfortably. I prefer HTML as I have my=20 > browser configured for legibility. I wish to have the tutorial=20 > available on my machine. A solution is to put the pages on your PC using httrack : http://www.httrac= k.com/page/1/en/index.html. After installation and having given a "project = name" and the path of a directory of your choice ( ex : xyz ) just then po= int the address to http://tcl.tk/man/tcl8.5/tutorial/tcltutorial.html . Lau= nch it . At the end, it will last a few minutes, you will see a file "index= ..html" in "xyz" directory . And... just doubleclick and here you are... It is web copier that you can use for a set of pages. The default settings = are such that you will download the necessary pages, not all the website, w= hich is not legal I think.=20 Olivier. On 3/11/2016 9:18 AM, Olivier wrote: >>...

Install expect -5.43 on redhat AS 3 when "make" appear "exp_main_exp.c:32: error"
I want to install expect on my old pc My os type: ------------------------------- Linux localhost.localdomain 2.6.9-11.ELsmp #1 SMP Fri May 20 18:26:27 EDT 2005 i686 i686 i386 GNU/Linux ----------------------------- first: install ActiveTcl8.6.0.0b1.289006-linux-ix86-threaded.tar.gz next: install expect-5.43 ../configure --with-tclconfig=/opt/ActiveTcl-8.6/lib/ --with-tkconfig=/ opt/ActiveTcl-8.6/lib/ --with-tclinclude=/opt/ActiveTcl-8.6/include/ when make,it appears : [root@localhost expect-5.43]# make gcc -c -I. -I. -I/opt/ActiveTcl-8.6/include -I/usr/X11R6/include - DEXP_VERSION=\"5.43.0\" -DSCRIPTDIR=\"/usr/local/lib/expect5.43\" - DEXECSCRIPTDIR=\"/usr/local/lib/expect5.43\" -DTCL_DEBUGGER - DUSE_NON_CONST -DSTTY_BIN=\"/bin/stty\" -DDFLT_STTY="\"sane\"" exp_main_exp.c exp_main_exp.c: In function `main': exp_main_exp.c:27: error: structure has no member named `result' exp_main_exp.c:32: error: structure has no member named `result' make: *** [exp_main_exp.o] error 1 i google the web,find nothing, Tanks for any suggestion. On Mar 30, 10:20=A0pm, tobetcl <leader...@gmail.com> wrote: > I want to install expect on my old pc I've not seen that error before. What _I_ would do in your situation, unless there is an urgent need to deal with expect source, is to just run teacup install Expect Do you have to use the older version of Expect? If not, by using that teacup command, you&...

how make /%([0-f]{2})/ -> sprintf( "%c", "\x" "\\1" ) problem : var = "\x27" # work var = 27 ; var = "\x" var ; # doesnt work, for sprintf %c
.... On 27.10.2014 18:32, {xmb} wrote: > ... > What a stupid question! Read http://www.catb.org/esr/faqs/smart-questions.html and Learn or Leave thank you _not_ for your useless text. if u want to help do so, u didnt. On Tue, 28 Oct 2014 07:42:00 -0700, {xmb} wrote: > thank you _not_ for your useless text. if u want to help do so, u didnt. Your question was unintelligible. The people in this group are very willing to help, in my experience. Your question just did not show the proper attitude or mental state to justify spending time answering. ...

calling "c" from TCL
Hello, To sum vectors i wrote a code like this; it is receiving 3 vectors data1, data2, data3. The diference between data1 and data2 is returned with Tcl_SetObjResult, but i would like modify data3, how can i modify data3?? Thanks #include <tcl.h> #include <iostream> using namespace std; int obj_vecsub(ClientData clientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]); int obj_vecsub(ClientData clientData, Tcl_Interp *interp, int argc, Tcl_Obj *const objv[]) { if (argc != 3) { Tcl_WrongNumArgs(interp, 1, objv, (char *)"?x? ?y?"); return TCL_ERROR; } int num1=0, num2=0, num3=0; Tcl_Obj **data1, **data2, **data3; if (Tcl_ListObjGetElements(interp, objv[1], &num1, &data1) != TCL_OK) return TCL_ERROR; if (Tcl_ListObjGetElements(interp, objv[2], &num2, &data2) != TCL_OK) return TCL_ERROR; if (Tcl_ListObjGetElements(interp, objv[3], &num2, &data3) != TCL_OK) return TCL_ERROR; if (num1 != num2) { Tcl_SetResult(interp, (char *)"vecsub: two vectors don't have the same size", TCL_STATIC); return TCL_ERROR; } Tcl_Obj *tcl_result = Tcl_NewListObj(0, NULL); Tcl_Obj *tcl_dummy = Tcl_NewListObj(0, NULL); for (int i=0; i<num1; i++) { double d1=0, d2=0, d3=77; if (Tcl_GetDoubleFromObj(interp, data1[i], &d1) != TCL_OK) { Tcl_SetResult(interp, (char *)"vecsub: non-numeric in first argument", TCL_STATIC); ret...

"""""""""ADD ME""""""""""
Hi , Hope you are doing great. Please let me take this opportunity to introduce myself, Iam Karthik working with BhanInfoi Inc, a NY based company. We have consultants on our bench on various technologies, my request is to add me to your distribution list and kindly do send me the requirements. i have the below list available 1. Mainframe 2. Java 3.. Financial Analyst 4. Data Architect If there is any vendor ship agreement which has to be signed then I would like to take an opportunity to represent my company and expect your cooperation... ...

Runtime 5.5 "application error" upon launch
THE PROBLEM The error message says "memory at location [address] cannot be read." The runtime engine then quits. THE ANTECEDENTS This error message appeared right after I copied a runtime solution folder from a network volume to the C: drive. Now, whether I try opening the runtime on the network volume or the C: drive I get the same error message. ATTEMPTED REMEDIES If I run the solution with the full version of FileMaker 5.5, everything is fine. This is not a viable long-term solution, but it does confirm that there is nothing wrong with the solution data files. I tried del...

3 problems with "A small editor in 8.5.0" ( http://wiki.tcl.tk/20542)
I'm using Tcl/Tk 8.6.4 under WinXP Pro. Problem 1. I don't see any where to specify desired font. There is a code fragment saying ----------- proc textfenster {mframe {master {}}} { if {$master eq {}} { text [set mframe].t -bg white -xscrollcommand [ ---------------------------- which I edited to be ----------- proc textfenster {mframe {master {}}} { if {$master eq {}} { text [set mframe].t -font "Courier 20" -bg white -xscrollcommand [ ---------------------------- It made no difference. Problem 2. Although moving the butto...

..\..\Python-2.5.2\Include\pyport.h(117) : fatal error C1189: #error : "Python needs a typedef for Py_ssize_t in pyport.h."
When I try and compile using VS2003 for Release. Compiles fine for Debug. In a hurry (should be gardening). Any solution? TIA Bill ...

How do I exclude "CTRL+C" from "dbstop if error"?
Hello, I am using extensively the "dbstop if error" option to allow me to debug in case of unexpected error (aren't they all...?). However, I don't want to go into debug mode when I break execution using "CTRL+C". I don't want to go into debug mode in this case. Can that be done? can I exclude a specific error ("Operation terminated by user during...") from the "dbstop if error" mode? Thanks, Ran "Ran" wrote in message <ju8gqk$ncn$1@newscl01ah.mathworks.com>... > Hello, > > I am using extensively the &qu...

Web resources about - tcl 8.5.2 gives error on runtime arg "-c" - comp.lang.tcl

Resources last updated: 3/13/2016 11:57:55 AM