Mail Archives: cygwin/2000/06/25/19:32:30
------=_NextPart_000_0007_01BFDF0D.B3A58000
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
thanks for your reply. Now, I've clean up a little, :), and attached are =
three tcl script files. I have "tested" them under Red Hat Linux =
6.2/Intel tcl-8.0.5-35 and the do not generate any parse errors or =
unterminated strings. They were run as tclsh test{1,2,3}.tcl (tehy did =
not exit but that's an other story.
Now, trying them under cygwin, with cygtcl gives me this:
BASH.EXE-2.04$ cygtclsh80 test1.tcl
couldn't execute "awk": no such file or directory
while executing
"exec awk $awkCode"
(file "test1.tcl" line 3)
BASH.EXE-2.04$ cygtclsh80 test2.tcl
couldn't execute "awk": no such file or directory
while executing
"exec awk $awkCode"
(file "test2.tcl" line 3)
BASH.EXE-2.04$ cygtclsh80 test3.tcl
couldn't execute "awk": no such file or directory
while executing
"exec awk $awkCode"
(file "test3.tcl" line 3)
BASH.EXE-2.04$
and running them under MSVC 6.0/sp3 compiled tcl8.0.5, I get this:
BASH.EXE-2.04$ tclsh80 test1.tcl
awk.exe: cmd. line:1: { print "
awk.exe: cmd. line:1: ^ unterminated string
while executing
"exec awk $awkCode"
(file "test1.tcl" line 3)
BASH.EXE-2.04$ tclsh80 test2.tcl
awk.exe: cmd. line:2: (END OF FILE)
awk.exe: cmd. line:2: parse error
while executing
"exec awk $awkCode"
(file "test2.tcl" line 3)
BASH.EXE-2.04$ tclsh80 test3.tcl
awk.exe: cmd. line:1: BEGIN {prev=3D-1; }{ print "
awk.exe: cmd. line:1: ^ unterminated string
while executing
"exec awk $awkCode"
(file "test3.tcl" line 3)
BASH.EXE-2.04$
Any comments are greatly appreciated
TIA,
/ChJ
----- Original Message -----=20
From: "Corinna Vinschen" <vinschen AT cygnus DOT com>
To: "Christian J=F6nsson" <c DOT christian DOT joensson AT telia DOT com>
Cc: <cygwin AT sourceware DOT cygnus DOT com>
Sent: Sunday, June 25, 2000 10:00 PM
Subject: Re: Problem with cygwin-1.1.2 gawk-3.0.4 [Was: [ANNOUNCEMENT] =
Updated: gawk-3.0.4]
> Christian J=F6nsson wrote:
> >=20
> > Followup to mentioned this problem earlier,
> > http://sourceware.cygnus.com/ml/cygwin/2000-06/msg00052.html
> >=20
> > I was hoping for this new gawk to resolve some of my problems.
> >=20
> > I have an in a tcl script embedded awk script, the tcl/tk is 8.0.5 =
(tar.gz) unpacked with tar zxvf on a binary mounted cygwin fs. Now, the =
tcl/tk 8.0.5 is compiled using msvc 6.0/sp3. Here's a snippet with the =
tcl embedded awk code:
> >=20
> > TestSuite instproc allmakeawk { } {
> > set awkCode {
> > BEGIN {prev=3D-1; tot_bytes=3D0; tot_packets=3D0; =
forced_total=3D0; unforced_total=3D0}
> > {
> > [...]
> > Any ideas? Anyone want to help track this problem down?
>=20
> It would be helpful if you track this down by yourself to be able
> to provide a MINIMAL code snippet which reproduces that behaviour.
> It should, for example, only consist of awk code to be sure that
> the error is only related to awk and not to tcl.
>=20
> Corinna
>=20
> --=20
> Corinna Vinschen
> Cygwin Developer
> Cygnus Solutions, a Red Hat company
>=20
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
>=20
------=_NextPart_000_0007_01BFDF0D.B3A58000
Content-Type: application/octet-stream;
name="test3.tcl"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="test3.tcl"
set awkCode { BEGIN {prev=3D-1; }{ print " "; } }=0A=
=0A=
exec awk $awkCode=0A=
------=_NextPart_000_0007_01BFDF0D.B3A58000
Content-Type: application/octet-stream;
name="test2.tcl"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="test2.tcl"
set awkCode { BEGIN { print "\"flow 0" }{ print " "; } }=0A=
=0A=
exec awk $awkCode=0A=
------=_NextPart_000_0007_01BFDF0D.B3A58000
Content-Type: application/octet-stream;
name="test1.tcl"
Content-Transfer-Encoding: quoted-printable
Content-Disposition: attachment;
filename="test1.tcl"
set awkCode { { print " "; } }=0A=
=0A=
exec awk $awkCode=0A=
------=_NextPart_000_0007_01BFDF0D.B3A58000
Content-Type: text/plain; charset=us-ascii
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
------=_NextPart_000_0007_01BFDF0D.B3A58000--
- Raw text -