Vince is correct, this is a bug in Tcl. It only shows up under Windows
and it is easy to work around (just set your CLASSPATH var to something).
Can we avoid any more posts about this issue? This list is for Tcl + Java
related issues. Tcl bugs should be discussed on comp.lang.tcl, not here.
There is already a thread titled "[Bug Tcl 8.2] setting env variable array
is broken under Windows." on comp.lang.tcl and a bug report has been sent
to the Scriptics bug database.
Mo DeJong
On Thu, 2 Dec 1999, Vince Darley wrote:
> Well, except that when this happens from within Tcl it appears to completely
> violate Tcl's semantics about variables:
>
> set env(CLASSPATH) ""
> puts $env(CLASSPATH)
>
> gives an error!!!!!
>
> While this may be a _peculiarity_ of Windows, I think Tcl needs to be coded
> to avoid this, not to label it as a bug...
>
> Vince.
>
> > -----Original Message-----
> > From: Scott Redman [mailto:[EMAIL PROTECTED]]
> > Sent: Wednesday, December 01, 1999 9:10 PM
> > To: tcljava
> > Subject: [Tcl Java] Re: [Tcl Java] Re: [Tcl Java] problem on win98/95
> >
> >
> > Removing an env var that is empty is a Windows platform issue,
> > not the fault of Tcl.
> >
> > Scott Stanton fixed the pkgIndex.tcl to work properly, even
> > with the empty env variable issue.
> >
> > -- Scott
> >
> > Moses DeJong wrote:
> > >
> > > On Tue, 30 Nov 1999, Scott Redman wrote:
> > >
> > > That should not be a problem. I put in a check for this
> > > error condition myself. There is some code in the pkgIndex.tcl
> > > file that looks in env for CLASSPATH spelled with some mix
> > > of lowercase letters. The real problem is that Tcl removes
> > > a env var that is set to "". A much better discussion of
> > this problem
> > > can be found on comp.lang.tcl.
> > >
> >
> > ----------------------------------------------------------------
> > The TclJava mailing list is sponsored by Scriptics Corporation.
> > To subscribe: send mail to [EMAIL PROTECTED]
> > with the word SUBSCRIBE as the subject.
> > To unsubscribe: send mail to [EMAIL PROTECTED]
> > with the word UNSUBSCRIBE as the subject.
> > To send to the list, send email to '[EMAIL PROTECTED]'.
> >
>
> ----------------------------------------------------------------
> The TclJava mailing list is sponsored by Scriptics Corporation.
> To subscribe: send mail to [EMAIL PROTECTED]
> with the word SUBSCRIBE as the subject.
> To unsubscribe: send mail to [EMAIL PROTECTED]
> with the word UNSUBSCRIBE as the subject.
> To send to the list, send email to '[EMAIL PROTECTED]'.
>
----------------------------------------------------------------
The TclJava mailing list is sponsored by Scriptics Corporation.
To subscribe: send mail to [EMAIL PROTECTED]
with the word SUBSCRIBE as the subject.
To unsubscribe: send mail to [EMAIL PROTECTED]
with the word UNSUBSCRIBE as the subject.
To send to the list, send email to '[EMAIL PROTECTED]'.