f



Tcl 8.4 regexp bug ("can't happen -- you found a bug")

Howdy,

The following regsub command causes the above error message in Tcl
8.4:

   regsub {(^|\n)+\.*b} \n.b "" tmp

There's probably room for argument about whether the expression is
malformed.  But in that case, it should probably say "quantifier
operand invalid" rather than "you found a bug".

Good luck,
-Jonathan Jones
0
11/3/2003 4:07:45 PM
comp.lang.tcl 23429 articles. 2 followers. Post Follow

1 Replies
618 Views

Similar Articles

[PageSpeed] 47

According to Jonathan Jones <googlegroups@spitzensparken.com>:
:The following regsub command causes the above error message 

Stop by the SourceForge project and submit a bug report on it.
-- 
<URL: http://wiki.tcl.tk/ > In God we trust.
Even if explicitly stated to the contrary, nothing in this posting
should be construed as representing my employer's opinions.
<URL: mailto:lvirden@yahoo.com > <URL: http://www.purl.org/NET/lvirden/ >
0
lvirden272 (610)
11/7/2003 4:12: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...

BWidget tree can't be "packed" in latest tcl/tk (8.6.b1.1)
With windows (2k/xp) and 8.6b1 tcl/tk in a tclkit my code works. I just found a newer tclkit, 8.6b1.1 and the below test code is now suddenly broken. It gets an error on the second pack statement: "cannot use geometry manager pack inside .wtree_top.sw which already has slaves managed by grid" Is there a new restriction (or one that is now enforced) that has recently been added that causes this to break? It would be a rather sad development if I could no longer use BWidget trees with the pack manager. -------------------------------------- I built my own tclk...

Claim of
Yes, this guy is truly retarded. <quote> Amarok developer Mark Kretschmann says, "There are no more bugs in Amarok 1.4. It is perfect, like a lotus flower. In fact, we think we may cancel development on Amarok 2.0, as there is no point...you can't improve upon perfection." </quote> http://amarok.kde.org/en/fastforward_149 ** Posted from http://www.teranews.com ** Ezekiel wrote: > Yes, this guy is truly retarded. > > > <quote> > Amarok developer Mark Kretschmann says, "There are no more bugs in > Amarok 1.4. It is perfect, like...

[ info exists varName ] returns "" on Tcl 8.4.4 ... we're losing our sanity here
Hello, We're using "Tcl 8.4.4.0 Solaris/SPARC" .... pretty darned old version, I know ... but we have no choice as our program doesn't work well with newer versions. Anyway, we keep getting an error that we all used to think was simply impossible ... namely [ info exists ] not returning zero or non-zero but simply returning an empty string: can't use empty string as operand of "!" while executing "if { ! [ info exists ::varName ] } { return }" (procedure "debugOut" line 3) invoked from within "debugOut -g 9 "Entered function."" (procedure "programExit" line 3) invoked from within "programExit 0" How the heck is this even possible?? Is this a bug in Tcl? I don't see how anything we could do could ever cause [ info exists ] to return an empty string! Regards, Markus On Jun 22, 5:51=A0pm, antred <Nut...@gmx.net> wrote: > Hello, > > We're using "Tcl 8.4.4.0 Solaris/SPARC" .... pretty darned old > version, I know ... but we have no choice as our program doesn't work > well with newer versions. > > Anyway, we keep getting an error that we all used to think was simply > impossible ... namely [ info exists ] not returning zero or non-zero > but simply returning an empty string: > > can't use empty string as operand of "!" > =A0 =A0 while executing > "if { ! [ info exists ::var...

"You can't put Tcl on your resume."
I'm going to have to start a list of the astute observations about Tcl that have been made around here lately! This one joins "Tcl/Tk is a fringe language only used by cults". John Seal napisaƂ(a): > I'm going to have to start a list of the astute observations about Tcl > that have been made around here lately! This one joins "Tcl/Tk is a > fringe language only used by cults". Oh yes, some time ago I suggested writing a database administration application in Tcl/Tk/Oratcl and I was called "hardcore" and "extreme" in the beginning by one Java programmer. Now that I've offloaded part of his work and developed it faster than he would have, he is happy with it. And my bosses have accepted the idea. I guess this company would be one of those where you would add Tcl as an addition (it's still a Java based company), but they'll be welcome to see it :-) -- WK Wojciech Kocjan wrote: > John Seal napisal(a): > > I'm going to have to start a list of the astute observations about Tcl > > that have been made around here lately! This one joins "Tcl/Tk is a > > fringe language only used by cults". > > Oh yes, some time ago I suggested writing a database administration > application in Tcl/Tk/Oratcl and I was called "hardcore" and "extreme" > in the beginning by one Java programmer. > > Now that I've offloaded part of his work an...

newlfm -- can't include "from phone", etc (bug?)
Hi, The little variation on the example in P. 2 of the manual of newlfm class shows a strange behavior (bug?). As typed -- no problem. However, if one of the additional options in \newlfmP{} is uncommented (one-at-a-time), I get errors, or indifference. The options are mentioned in P. 4 of the manual. Did I miss something or is it simply a bug? I guess a workaround is simply to stick all the information into \addr{}, and forget about \phone{} and friends. But I'm curious. Thanks, Itay %% File: test.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%% \documentclass[stdletter,11pt]{newlfm} \nameto{George Bush} \addrto{\parbox{2in}{The White House \\ Washington, DC}} \namefrom{My Self} \newlfmP{addrf=testADR%% OK %%,addrfromphone%% Produced error [1] %%,addrfromfax%% Produces error [2] %%,printallfrom%% Ignored [3] }%% \begin{document} \closeline{Sincerely yours,} \greetto{Dear Mr. Bush,} \begin{newlfm} How are the azaleas? \end{newlfm} \end{document} %% File: letrinfo.tex %%%%%%%%%%%%%%%%%%%%%%%%%%%% %% (Read automatically by newlfm -- put in the same directory as %% test.tex.) \makeaddress{testADR}{% \name{Itay Furman}% \addr{% The Test Newlfm Institute\\% Somewhere\\% USA% }% \phone{1 (999) 999 9999}% \fax{1 (999) 999 9999}% \email{itayf@fhcrc.org}% }% %% End of files %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% [1] ERROR: Undefined control sequence. --- TeX said --- <argument> \\ \@phn@phr : \@phone@fr ...

Matlab7 'bug' when using "subplot" + "imagesc"?
Hi, Does anybody know if Matlab7 has a 'bug' when using "subplot" + "imagesc"? I use to work with Matlab6.5 and using "subplot" + "imagesc" together in the same Figure worked absolutely fine: ======================================= a) all subplots where of the same size, b) the distances between them was the appropiate, c) and the size of the colorbar was perfect and the same for all subplots. ======================================= However I am now using Matlab7 and to my surprise using "subplot" + "imagesc" together ...

Why doesn't can't a vector of "Derived" be passed to function taking vector of "Base"?
I have these classes (elided methods): class Base { public: Base(string name) {...} }; class Derived : public Base { public: Derived(String name) : Base( name ) {...} }; And neither of these work: /*** ATTEMPT ONE **/ void create(std::vector<Base>& arr) { ... } int main() { std::vector<Derived> arr; create( arr ); } /*** ATTEMPT TWO **/ void create(std::vector<Base*>& arr) { ... } int main() { std::vector<Derived*> arr; create( arr ); } On 2008-04-28 17:20, Rob wrote: > I have these classes (elided methods): To answer the questions in the subject (which you really ought to repeat in the message): Because a vector<Derived> does not inherit from vector<Base> even though Derived inherits from Base. You might want to use vector<Base*> instead and store pointers to objects of type Derived in it. -- Erik Wikström Rob <someidunknown1234@yahoo.com> writes: > I have these classes (elided methods): > > class Base > { > public: > Base(string name) {...} > }; > > class Derived : public Base > { > public: > Derived(String name) : Base( name ) {...} > }; > > And neither of these work: > > /*** ATTEMPT ONE **/ > void create(std::vector<Base>& arr) > { > ... > } ...

(mapcar 'quote '("1" "2" "3" "4"))
(mapcar 'quote '("1" "2" "3" "4")) returns ((quote "4") (quote "4") (quote "4") (quote "4")) Interesting and (for me) unexpected. Because (mapcar 'read '("1" "2" "3" "4")) returns (1 2 3 4) and (mapcar 'princ '("1" "2" "3" "4")) gives 1234("1" "2" "3" "4") Why isn't (mapcar 'quote '("1" "2" "3" "4")) returning ((quote "1") (quote "2") (quote "3") (quote "4")) Tom Haws www.hawsedc.com Probably has to do with the fact that 'arg and (quote arg) are equivalent, and LISP gets confused by the construct 'quote, which is about the same as (quote (quote arg)). But I don't pretend to know all of the mechanics of the error; the results are somewhat different in R14, BTW: Command: (mapcar 'quote '("1" "2" "3" "4")) ((<Subr: #22e3e40> "4") (<Subr: #22e3e40> "4") (<Subr: #22e3e40> "4") (<Subr: #22e3e40> "4")) ___ "Tom Haws" <hawstom@despammed.com> wrote in message news:77317472.0309160733.45ea9d8c@posting.google.com... > (mapcar 'quote '("1" "2" "3"...

"env" parameter to "popen" won't accept Unicode on Windows
I passed a dict for the "env" variable to Popen with Unicode strings for the dictionary values. Got: File "D:\Python24\lib\subprocess.py", line 706, in _execute_child TypeError: environment can only contain strings It turns out that the strings in the "env" parameter have to be ASCII, not Unicode, even though Windows fully supports Unicode in CreateProcess. John Nagle John Nagle wrote: > It turns out that the strings in the "env" parameter have to be > ASCII, not Unicode, even though Windows fully supports Unicode in > CreateProce...

BLT bug 886267: "Compile trouble with Tcl/Tk 8.5a0" reported
I just reported a bug against BLT, number 886267: "Compile trouble with Tcl/Tk 8.5a0" Compiling against Tcl/Tk the Tcl/Tk pre-Alpha 8.5a0 fails with some functions confilctingly declared. Examples are Tcl_FindCommand, Tcl_CreateNamespace, Tcl_FindNamespace, and Tcl_Export. These are being redeclared in bltNsUtil.h, having also been declared in tclDecls.h -- Rich Wurth / rwurth@att.net / Rumson, NJ 07760 USA Consultant to the telecom industry rwurth@att.net (R. T. Wurth) wrote: >I just reported a bug against BLT, number 886267: "Compile trouble >with Tcl/Tk 8.5a0" > >Compiling against Tcl/Tk the Tcl/Tk pre-Alpha 8.5a0 fails with some >functions confilctingly declared. Examples are Tcl_FindCommand, >Tcl_CreateNamespace, Tcl_FindNamespace, and Tcl_Export. These are >being redeclared in bltNsUtil.h, having also been declared in >tclDecls.h Ask the BLT author if he can update his source to match the recent changes. Or you can fix it yourself by adding an #if/#endif around those now public functions in bltNsUtil.h: #if (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 5) ..... #endif -- David Gravereaux <davygrvy@pobox.com> [species: human; planet: earth,milkyway(western spiral arm),alpha sector] "David Gravereaux" <davygrvy@pobox.com> wrote > rwurth@att.net (R. T. Wurth) wrote: > >I just reported a bug against BLT, number 886267: "Compile trouble > >with Tcl/Tk 8.5a0...

Matlab7 'bug' when using "subplot" + "imagesc"? #2
Hi, Does anybody know if Matlab7 has a 'bug' when using "subplot" + "imagesc"? I use to work with Matlab6.5 and using "subplot" + "imagesc" together in the same Figure worked absolutely fine: ======================================= a) all subplots where of the same size, b) the distances between them was the appropiate, c) and the size of the colorbar was perfect and the same for all subplots. ======================================= However I am now using Matlab7 and to my surprise using "subplot" + "imagesc" together ...

http 2.4.5 : can't read "state(after)": no such element in array while executing "after cancel $state(after)"
Hello everyone, I set up my eggdrop a code that returns all bugs error to debugged as easily as possible. This code returns to me chque call a function of the HTTP package http.tcl 2.4.5 error: can't read "state(after)": no such element in array while executing "after cancel $state(after)" I think properly use this package calls, his would be a bug itself? How to solve this problem? What is the? Need more information? well to you. ...

Install tcl 8.4 error, Can't find a usable init.tcl in the following directories
I build tcl 8.4.10 on Solaris 8, compile ok, but get error when running "make test" I run: configure --prefix=/users/xucai --exec-prefix=/users/xucai --enable-shared --enable-gcc //ok make //ok make test // this step failed. and get following error: LD_LIBRARY_PATH=`pwd`:${LD_LIBRARY_PATH}; export LD_LIBRARY_PATH; \ TCL_LIBRARY="/users/xucai/src/tcl8.4.10/library"; export TCL_LIBRARY; \ ../tcltest ./../tests/all.tcl application-specific initialization failed: Can't find a usable init.tcl in the following directories: /users/xucai/src/tcl8.4.10/library /users/xucai/lib/tcl8.4 /users/xucai/src/tcl8.4.10/library /users/xucai/src/tcl8.4.10/tcl8.4 /users/xucai/src/tcl8.4.10/lib/tcl8.4 /users/xucai/src/lib/tcl8.4 /users/xucai/src/tcl8.4.10/library /users/xucai/src/library /users/xucai/src/tcl8.4.10/library /users/xucai/tcl8.4.10/library /users/xucai/lib/tcl8.4 /users/xucai/src/tcl8.4.10/library/init.tcl: can't read "::auto_path": no such variable can't read "::auto_path": no such variable while executing "lsearch -exact $::auto_path $Dir" what does it mean ? who can help ? thx. Jeff.c wrote: > I build tcl 8.4.10 on Solaris 8, compile ok, but get error when running... Q) Why are you choosing to build from source, when ActiveState offers pre-built ActiveTcl binaries for Solaris as a free download? <URL: http://www.activestate.com/Products/ActiveTcl/ > Q) If you insist on...

checkbuttons in tcl 8.4.12 and 8.5a4 with -offvalue == ""?
Hello, I just realized some differences between the checkbuttons visualisation in tcl 8.4 and 8.5. If the offvalue of a checkbutton is set to "" (empty string) and the checkbutton is not "checked", than ... - in tcl 8.4.12 the background is white - in tcl 8.5a4 the background is grey and the "check" is still visible That's a bug, isn't it? If the offvalue is " " (one blank), than every thing works. Best regards, Martin Lemburg UGS - Transforming the Process of Innovation MartinLemburg@UGS wrote: > Hello, > > I just realized some differences between the checkbuttons visualisation > in tcl 8.4 and 8.5. > > If the offvalue of a checkbutton is set to "" (empty string) and the > checkbutton is not "checked", than ... > - in tcl 8.4.12 the background is white > - in tcl 8.5a4 the background is grey and the "check" is still > visible > > That's a bug, isn't it? > It's a much sought-after new feature. Checkbuttons in tk 8.5 have the ability to have three states: on, off and "tristate". The default value for the third state is the empty string. It's documented in the 8.5 manual page; look for the -tristatevalue option: http://www.tcl.tk/man/tcl8.5/TkCmd/checkbutton.htm#M17 Hhm, ... ok I know now why, but I don't understand why this way of tristate value usage was chosen! If I have an offvalue "" ...

Forget "Why Can't Johnny Read?" ... Why Can't Eudora Read?
I have a script which writes a MIME-formatted email containing both text and HTML. It works perfectly with all email clients with the exception of the free version of Eudora. As many of you no doubt are aware, a multipart/alternative email is constructed with two or more parts: (1) text for mail clients unable to read HTML and (2) HTML. Eudora is one of the clients which cannot read HTML. So does it read the text version of the multipart/alternative email? Of course not. It tries to read the 2nd part which is the HTML and fails ... thus displaying a table as if it were text. Eudora liter...

FAQ 5.34 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? #8
This is an excerpt from the latest version perlfaq5.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 5.34: Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? Whoops! You just put a tab and a formfeed into that filename! Remember that within double quoted strings (&qu...

FAQ 5.35 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? #4
This is an excerpt from the latest version perlfaq5.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 5.35: Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? Whoops! You just put a tab and a formfeed into that filename! Remember that within double quoted strings ("like\this"), the backslash is an escape character. The full list of these is in "Quote and Quote-like Operators" in perlop. Unsurprisingly, you don't have a file called "c:(tab)emp(formfeed)oo" or "c:(tab)emp(formfeed)oo.exe" on your legacy DOS filesystem. Either single-quote your strings, or (preferably) use forward slashes. Since all DOS and Windows versions since something like MS-DOS 2.0 or so have treated "/" and "\" the same in a path, you might as well use the one that doesn't clash with Perl--or the POSIX shell, ANSI C and C++, awk, Tcl, Java, or Python, just to mention a few. POSIX paths are more portable, too. -------------------------------------------------------------------- The perlfaq-workers, a group of volunteers, maintain the perlfaq. They are not necessarily e...

Instruction at "0x00FC3D70" use memory address "0x00000000". Can't be "read".
Yesterday, ALL code in python work and nothing when I close(finish) a code. Today, when I close, some raise this windows error : Instruction at "0x00FC3D70" use memory address "0x00000000". Can't be "read". Click on "OK" to exit program. Why this error, today and not before today? Askari Askari wrote: > Yesterday, ALL code in python work and nothing when I close(finish) a code. > Today, when I close, some raise this windows error : > > Instruction at "0x00FC3D70" use memory address "0x00000000". Can't be &...

FAQ 5.34 Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? #4 555136
This is an excerpt from the latest version perlfaq5.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 5.34: Why can't I use "C:\temp\foo" in DOS paths? Why doesn't `C:\temp\foo.exe` work? Whoops! You just put a tab and a formfeed into that filename! Remember that within double quoted strings (&qu...

FAQ 5.38 Why does Perl let me delete read-only files? Why does "-i" clobber protected files? Isn't this a bug in Perl? #4
This is an excerpt from the latest version perlfaq5.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 5.38: Why does Perl let me delete read-only files? Why does "-i" clobber protected files? Isn't this a bug in Perl? This is elaborately and painstakingly described in the file-dir-perms article in th...

FAQ 5.36 Why does Perl let me delete read-only files? Why does "-i" clobber protected files? Isn't this a bug in Perl? #8
This is an excerpt from the latest version perlfaq5.pod, which comes with the standard Perl distribution. These postings aim to reduce the number of repeated questions as well as allow the community to review and update the answers. The latest version of the complete perlfaq is at http://faq.perl.org . -------------------------------------------------------------------- 5.36: Why does Perl let me delete read-only files? Why does "-i" clobber protected files? Isn't this a bug in Perl? This is elaborately and painstakingly described in the file-dir-perms article in th...

Can't "mk CONF=9pcdisk" --> gives error "rc: #d/0: token '=': syntax error"
I'm in /sys/src/9/pc and I type `mk CONF=9pcdisk` and rc gives me the error "rc: #d/0: token '=': syntax error". Why is this? Just doing mk works fine (I think). Thanks! Plan9 looks very cool... just finished reading through intro (all of it). you're using backquotes, why? that would be `{mk CONF=3D9pcdisk} in rc's syntax. now to compile that kernel the syntax is: % mk 'CONF=3Dpcdisk' now are you sure you want a pcdisk?=20 On Jul 19, 2012, at 6:07 AM, kalaracey@gmail.com wrote: > I'm in /sys/src/9/pc and I type >=20 ...

Can't perform an "ll" or "ls"
I am using vxWorks 5.1.1. I do an rlogin to a board. I can't do an ll or ls to see the contents of a directory. I can do a pwd or a cd and move around, but I can't see what's in a directory. The error say that it can't open ls. pingTid xxxxx. I have the target board's name in .rhosts and in hosts.equiv, but that doesn't help. The board won't boot up if I don't have the correct users name in the boot parameters. The host and target names are also correct. Anybody experience this before? Eric Morgan Eric Morgan wrote: >I am using vxWorks 5.1.1. I do...

Web resources about - Tcl 8.4 regexp bug ("can't happen -- you found a bug") - comp.lang.tcl

Resources last updated: 3/13/2016 8:28:09 PM