Problem with cygwin-1.1.2 gawk-3.0.4 [Was: [ANNOUNCEMENT] Updated: gawk-3.0.4]

Christian Jönsson c.christian.joensson@telia.com
Sun Jun 25 16:31:00 GMT 2000


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=-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 ----- 
From: "Corinna Vinschen" <vinschen@cygnus.com>
To: "Christian Jönsson" <c.christian.joensson@telia.com>
Cc: <cygwin@sourceware.cygnus.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önsson wrote:
> > 
> > Followup to  mentioned this problem earlier,
> > http://sourceware.cygnus.com/ml/cygwin/2000-06/msg00052.html
> > 
> > I was hoping for this new gawk to resolve some of my problems.
> > 
> > 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:
> > 
> > TestSuite instproc allmakeawk { } {
> >     set awkCode {
> >         BEGIN {prev=-1; tot_bytes=0; tot_packets=0; forced_total=0; unforced_total=0}
> >         {
> > [...]
> > Any ideas? Anyone want to help track this problem down?
> 
> 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.
> 
> Corinna
> 
> -- 
> Corinna Vinschen
> Cygwin Developer
> Cygnus Solutions, a Red Hat company
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
> 
-------------- next part --------------
set awkCode { { print " "; } }

exec awk $awkCode

-------------- next part --------------
set awkCode { BEGIN { print "\"flow 0" }{ print " "; } }

exec awk $awkCode
-------------- next part --------------
set awkCode { BEGIN {prev=-1; }{ print " "; } }

exec awk $awkCode


More information about the Cygwin mailing list