On Wed, 25 Oct 2000, Christian Krone wrote:

> Hello,
> 
> > Frank Krahmer wrote:
> 
> > > After calling a Jacl script I get an exception and examine this by
> [...]
> > > tcl.lang.TclException: syntax error in expression "([info level] == 1) &&
> > > ([info script] == "") \
> > >             && [info exists tcl_interactive] && $tcl_interactive"
> > >         at tcl.lang.Expression.SyntaxError(Expression.java:258)
> 
> The expression looks perfectly valid for me, and even my jaclsh
> doesn't complain about a syntax error:
> 
> bash-2.04$ cat /tmp/test.tcl
> if {([info level] == 1) &&
>     ([info script] == "") \
>         && [info exists tcl_interactive] && $tcl_interactive} {
>     puts Yes
> } else {
>     puts No
> }
> bash-2.04$ jaclsh /tmp/test.tcl
> No
> 
> So maybe, Frank is working on Windows and here the old
> CR-LF error pops up again???

Yeah, that is most likely it. I should go put that up
on the sourceforge task list for Jacl.

Mo DeJong
Red Hat Inc

----------------------------------------------------------------
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]'. 
An archive is available at http://www.mail-archive.com/tcljava@scriptics.com

Reply via email to