I am sourcing a script that has the following lines in it. Whenever I
source it, it gives an error. I am
using Jacl 1.2.5. This used to work in Jacl 1.1.1.
set x 3
if {$x == 3} \
{
puts $x
} \
else \
{
puts "Bad"
}
The following is the error information:
%source
"D:\\TestBench\\ClearCase\\export\\atria\\vobs\\CIDDS\\TestBench\\Code\\BATS
_Scripts\\temp.tcl"
>missing close-brace
%$errorInfo
>invalid command name "missing close-brace
while executing
"if {$x == 3} \
{
"
(file
"D:\TestBench\ClearCase\export\atria\vobs\CIDDS\TestBench\Code\BATS_Scripts\
temp.tcl" line 2)
(file line 2)
invoked from within
"source
"D:\\TestBench\\ClearCase\\export\\atria\\vobs\\CIDDS\\TestBench\\Code\\BATS
_Scripts\\temp.tcl"""
I did some investigation into the Interp.readScriptFromFile method. In Jacl
1.1.1, readScriptFromFile
called translateLineSeparators to translate a \r\n pair for a windows
newline to \n for the interpreter (My script
was written on a PC so it has \r\n in it). In Jacl 1.2.5, the
translateLineSeparators method is not present,
but needs to be for the script to run correctly.
Chris Trella
480-675-1347
[EMAIL PROTECTED] <mailto:[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]'.