This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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



----- Original Message ----- 
From: "Chris Faylor" <cgf@cygnus.com
 
> Sorry.  You still have too many variables.  FYI, tcl/tk are only very
> minimally cygwin-aware.  Maybe that's part of your problem.

oh, I see. well, an other trouble here is that I actually would like
to be able to run msvc compiled "standard" tcl/tk but that's where
the parsing and unterminated string errors occur... :-(

> If cygtclsh80 can't execute awk for some reason, that sort of indicates
> a problem with your path.  That would be one thing to check.

hmm, I have attaced the cygcheck -r -v -s output. But, I really can't
understand this being a problem with *my* path. It's 

BASH.EXE-2.04$ printenv PATH
/usr/X11R6/bin:/usr/bin:/USR/LOCAL/BIN:/cygdrive/c/WINDOWS:
/cygdrive/c/WINDOWS:/cygdrive/c/WINDOWS/COMMAND:
/cygdrive/c/PROGRAM/PERL/BIN/:/cygdrive/c/WINDOWS:
/cygdrive/c/WINDOWS/COMMAND:.
BASH.EXE-2.04$ ls -l /usr/bin/awk.exe
lrw-r--r--   1 chj      unknown        19 Jun 25 18:00 /usr/bin/awk.exe -> gawk.exe*
BASH.EXE-2.04$

The very trivial test1.tcl script is this:

BASH.EXE-2.04$ less test1.tcl
set awkCode { { print " "; } }

exec awk $awkCode
BASH.EXE-2.04$

now, it might be my total lack of tcl script writing and thus a PATH
problem, a cygtcl problem with PATH or awk. hmm, perhaps the link
awk -> gawk...

changing and trying again...

BASH.EXE-2.04$ less test1.tcl
set awkCode { { print " "; } }

exec gawk $awkCode
BASH.EXE-2.04$ cygtclsh80.exe test1.tcl
gawk.exe: cmd. line:1:  { print "
gawk.exe: cmd. line:1:          ^ unterminated string
    while executing
"exec gawk $awkCode"
    (file "test1.tcl" line 3)
BASH.EXE-2.04$ 

hmm, there is is, the unterminated string problem, test case 1. (and a
discoverg cygtcl "feauture" :), couldn't handle the awk.exe -> gawk.exe
link...

now, changing test2.tcl and trying again...

BASH.EXE-2.04$ less test2.tcl
set awkCode { BEGIN { print "\"flow 0" }{ print " "; } }

exec gawk $awkCode
BASH.EXE-2.04$ cygtclsh80.exe test2.tcl
gawk.exe: cmd. line:2: (END OF FILE)
gawk.exe: cmd. line:2: parse error
    while executing
"exec gawk $awkCode"
    (file "test2.tcl" line 3)
BASH.EXE-2.04$

same with test3.tcl...

BASH.EXE-2.04$ less test3.tcl
set awkCode { BEGIN {prev=-1; }{ print " "; } }

exec gawk $awkCode

BASH.EXE-2.04$ cygtclsh80.exe test3.tcl
gawk.exe: cmd. line:1:  BEGIN {prev=-1; }{ print "
gawk.exe: cmd. line:1:                           ^ unterminated string
    while executing
"exec gawk $awkCode"
    (file "test3.tcl" line 3)
BASH.EXE-2.04$

A comment, in the fixed font bash, the "^" in unterminated string in the above
two cases points at the first  " in the print statements.

> Possibly running one of the tools at www.sysinternals.com will show
> you what files are being run and may even show you command lines.
>
> Or, you might be able to debug this with gdb.

I'll wait a little with those...
 
> I guess the bottom line is that I really think that you're going to have
> to debug this yourself.

well, perhaps someone on the list can shed some light and give me
ideas. so far, corinna's encuraged me to pin a problem down, I think
I have acheived that somehow. you've made me discover a "feature"
of cygtcl, the link-problem. so, bottom line, I've made progress and I
really appreciate any kinds of comments.

thanks,

/ChJ



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]