public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* awk problems in B20.1?
@ 1999-09-26 12:21 Christian Jönsson FOA 72
  1999-09-30 23:42 ` Christian Jönsson FOA 72
  0 siblings, 1 reply; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-09-26 12:21 UTC (permalink / raw)
  To: cygwin

I'm just wondering if more people than I have encountered problems
with cygwin's B20.1 awk. I try running some validation tests of a
network simulator ns2 under Win NT 4.0 sp3 using cygwin b20.1 and its
awk. Now, running these validations under Red Hat Linux 6.0/Intel works
fine but they fail with "strange" comments from b20.1's awk claiming
commands are corrupt...

Anyway, if there are know problems with awk, perhaps it's compiled
somewhere on the net here but I haven't found it. If you know of such
an URL please let me know before I go hunting for errors...

TIA,

/ChJ








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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* awk problems in B20.1?
  1999-09-26 12:21 awk problems in B20.1? Christian Jönsson FOA 72
@ 1999-09-30 23:42 ` Christian Jönsson FOA 72
  0 siblings, 0 replies; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-09-30 23:42 UTC (permalink / raw)
  To: cygwin

I'm just wondering if more people than I have encountered problems
with cygwin's B20.1 awk. I try running some validation tests of a
network simulator ns2 under Win NT 4.0 sp3 using cygwin b20.1 and its
awk. Now, running these validations under Red Hat Linux 6.0/Intel works
fine but they fail with "strange" comments from b20.1's awk claiming
commands are corrupt...

Anyway, if there are know problems with awk, perhaps it's compiled
somewhere on the net here but I haven't found it. If you know of such
an URL please let me know before I go hunting for errors...

TIA,

/ChJ








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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
  1999-10-15  6:30 Christian Jönsson FOA 72
@ 1999-10-31 19:54 ` Christian Jönsson FOA 72
  0 siblings, 0 replies; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-10-31 19:54 UTC (permalink / raw)
  To: cygwin; +Cc: Haobo Yu, dwyatt

Hmm, perhaps I should have added tha whole tcl procedure, because it's =

got a "nice" feauture, a return of the value of awkCode...


TestSuite instproc unforcedmakeawk { } {
        set awkCode {
            {
                if ($2 !=3D prev) {
                        print " "; print "\"flow " $2;
			if ($13 > 0 && $14 > 0) {
			    print 100.0 * $9/$13, 100.0 * $10 / $14
			}
			prev =3D $2;
                } else if ($13 > 0 && $14 > 0) {
                        print 100.0 * $9 / $13, 100.0 * $10 / $14
		}
            }
        }
        return $awkCode
}

I suspect some kind of problem with the doublequote and/or with the =

escape char "\"...

Well, that's it for now...

/ChJ


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
  1999-10-15  6:31 ` Christian Jönsson FOA 72
@ 1999-10-31 19:54   ` Christian Jönsson FOA 72
  0 siblings, 0 replies; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-10-31 19:54 UTC (permalink / raw)
  To: earnie_boyd; +Cc: dwyatt, cygwin, jag123e

Hello again Doug and anyone else...

I'm not sure this is a "text processing mode" vs "binary
processing mode" issue but 

I'm sorry to "bother" you again but I thought I had to ask you a 
"quick one". Might there be a problem with (it's tcl code)

        exec awk [$self $awkprocedure_] $flowfile >@ $outdesc


where $self $awkproc_ $flowfile and $outdesc are 

_o4
unforcedmakeawk
fairflow.tr
file128

and the failure is
ns: _o4 finish_flows test_flows_unforced: awk.exe: cmd. line:4:
        print "
awk.exe: cmd. line:4:                               ^ unterminated string

and the procedure unforcedmakeawk is

TestSuite instproc unforcedmakeawk { } {
        set awkCode {
            {
                if ($2 != prev) {
                        print " "; print "\"flow " $2;
			if ($13 > 0 && $14 > 0) {
			    print 100.0 * $9/$13, 100.0 * $10 / $14

the problem is the first print " "; statement, the last " is "lost" 
somehow...

Any hints?

TIA,

/ChJ





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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
  1999-10-15  6:30 Christian Jönsson FOA 72
@ 1999-10-31 19:54 ` Christian Jönsson FOA 72
  0 siblings, 0 replies; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-10-31 19:54 UTC (permalink / raw)
  To: cygwin; +Cc: Haobo Yu, dwyatt

Hmm, perhaps I should have added tha whole tcl procedure, because it's 
got a "nice" feauture, a return of the value of awkCode...


TestSuite instproc unforcedmakeawk { } {
        set awkCode {
            {
                if ($2 != prev) {
                        print " "; print "\"flow " $2;
			if ($13 > 0 && $14 > 0) {
			    print 100.0 * $9/$13, 100.0 * $10 / $14
			}
			prev = $2;
                } else if ($13 > 0 && $14 > 0) {
                        print 100.0 * $9 / $13, 100.0 * $10 / $14
		}
            }
        }
        return $awkCode
}

I suspect some kind of problem with the doublequote and/or with the 
escape char "\"...

Well, that's it for now...

/ChJ


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
  1999-10-15  6:30 ` Christian Jönsson FOA 72
@ 1999-10-31 19:54   ` Christian Jönsson FOA 72
  0 siblings, 0 replies; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-10-31 19:54 UTC (permalink / raw)
  To: earnie_boyd; +Cc: dwyatt, cygwin, jag123e

Hello again Doug and anyone else...

I'm not sure this is a "text processing mode" vs "binary
processing mode" issue but =


I'm sorry to "bother" you again but I thought I had to ask you a =

"quick one". Might there be a problem with (it's tcl code)

        exec awk [$self $awkprocedure_] $flowfile >@ $outdesc


where $self $awkproc_ $flowfile and $outdesc are =


_o4
unforcedmakeawk
fairflow.tr
file128

and the failure is
ns: _o4 finish_flows test_flows_unforced: awk.exe: cmd. line:4:
        print "
awk.exe: cmd. line:4:                               ^ unterminated string=


and the procedure unforcedmakeawk is

TestSuite instproc unforcedmakeawk { } {
        set awkCode {
            {
                if ($2 !=3D prev) {
                        print " "; print "\"flow " $2;
			if ($13 > 0 && $14 > 0) {
			    print 100.0 * $9/$13, 100.0 * $10 / $14

the problem is the first print " "; statement, the last " is "lost" =

somehow...

Any hints?

TIA,

/ChJ





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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
  1999-09-26 18:48 Earnie Boyd
  1999-09-30 23:42 ` Earnie Boyd
  1999-10-15  6:30 ` Christian Jönsson FOA 72
@ 1999-10-15  6:31 ` Christian Jönsson FOA 72
  1999-10-31 19:54   ` Christian Jönsson FOA 72
  2 siblings, 1 reply; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-10-15  6:31 UTC (permalink / raw)
  To: earnie_boyd; +Cc: dwyatt, cygwin, jag123e

Hello again Doug and anyone else...

I'm not sure this is a "text processing mode" vs "binary
processing mode" issue but 

I'm sorry to "bother" you again but I thought I had to ask you a 
"quick one". Might there be a problem with (it's tcl code)

        exec awk [$self $awkprocedure_] $flowfile >@ $outdesc


where $self $awkproc_ $flowfile and $outdesc are 

_o4
unforcedmakeawk
fairflow.tr
file128

and the failure is
ns: _o4 finish_flows test_flows_unforced: awk.exe: cmd. line:4:
        print "
awk.exe: cmd. line:4:                               ^ unterminated string

and the procedure unforcedmakeawk is

TestSuite instproc unforcedmakeawk { } {
        set awkCode {
            {
                if ($2 != prev) {
                        print " "; print "\"flow " $2;
			if ($13 > 0 && $14 > 0) {
			    print 100.0 * $9/$13, 100.0 * $10 / $14

the problem is the first print " "; statement, the last " is "lost" 
somehow...

Any hints?

TIA,

/ChJ





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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
  1999-09-26 18:48 Earnie Boyd
  1999-09-30 23:42 ` Earnie Boyd
@ 1999-10-15  6:30 ` Christian Jönsson FOA 72
  1999-10-31 19:54   ` Christian Jönsson FOA 72
  1999-10-15  6:31 ` Christian Jönsson FOA 72
  2 siblings, 1 reply; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-10-15  6:30 UTC (permalink / raw)
  To: earnie_boyd; +Cc: dwyatt, cygwin, jag123e

Hello again Doug and anyone else...

I'm not sure this is a "text processing mode" vs "binary
processing mode" issue but =


I'm sorry to "bother" you again but I thought I had to ask you a =

"quick one". Might there be a problem with (it's tcl code)

        exec awk [$self $awkprocedure_] $flowfile >@ $outdesc


where $self $awkproc_ $flowfile and $outdesc are =


_o4
unforcedmakeawk
fairflow.tr
file128

and the failure is
ns: _o4 finish_flows test_flows_unforced: awk.exe: cmd. line:4:
        print "
awk.exe: cmd. line:4:                               ^ unterminated string=


and the procedure unforcedmakeawk is

TestSuite instproc unforcedmakeawk { } {
        set awkCode {
            {
                if ($2 !=3D prev) {
                        print " "; print "\"flow " $2;
			if ($13 > 0 && $14 > 0) {
			    print 100.0 * $9/$13, 100.0 * $10 / $14

the problem is the first print " "; statement, the last " is "lost" =

somehow...

Any hints?

TIA,

/ChJ





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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
@ 1999-10-15  6:30 Christian Jönsson FOA 72
  1999-10-31 19:54 ` Christian Jönsson FOA 72
  0 siblings, 1 reply; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-10-15  6:30 UTC (permalink / raw)
  To: cygwin; +Cc: Haobo Yu, dwyatt

Hmm, perhaps I should have added tha whole tcl procedure, because it's 
got a "nice" feauture, a return of the value of awkCode...


TestSuite instproc unforcedmakeawk { } {
        set awkCode {
            {
                if ($2 != prev) {
                        print " "; print "\"flow " $2;
			if ($13 > 0 && $14 > 0) {
			    print 100.0 * $9/$13, 100.0 * $10 / $14
			}
			prev = $2;
                } else if ($13 > 0 && $14 > 0) {
                        print 100.0 * $9 / $13, 100.0 * $10 / $14
		}
            }
        }
        return $awkCode
}

I suspect some kind of problem with the doublequote and/or with the 
escape char "\"...

Well, that's it for now...

/ChJ


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
@ 1999-10-15  6:30 Christian Jönsson FOA 72
  1999-10-31 19:54 ` Christian Jönsson FOA 72
  0 siblings, 1 reply; 12+ messages in thread
From: Christian Jönsson FOA 72 @ 1999-10-15  6:30 UTC (permalink / raw)
  To: cygwin; +Cc: Haobo Yu, dwyatt

Hmm, perhaps I should have added tha whole tcl procedure, because it's =

got a "nice" feauture, a return of the value of awkCode...


TestSuite instproc unforcedmakeawk { } {
        set awkCode {
            {
                if ($2 !=3D prev) {
                        print " "; print "\"flow " $2;
			if ($13 > 0 && $14 > 0) {
			    print 100.0 * $9/$13, 100.0 * $10 / $14
			}
			prev =3D $2;
                } else if ($13 > 0 && $14 > 0) {
                        print 100.0 * $9 / $13, 100.0 * $10 / $14
		}
            }
        }
        return $awkCode
}

I suspect some kind of problem with the doublequote and/or with the =

escape char "\"...

Well, that's it for now...

/ChJ


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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
  1999-09-26 18:48 Earnie Boyd
@ 1999-09-30 23:42 ` Earnie Boyd
  1999-10-15  6:30 ` Christian Jönsson FOA 72
  1999-10-15  6:31 ` Christian Jönsson FOA 72
  2 siblings, 0 replies; 12+ messages in thread
From: Earnie Boyd @ 1999-09-30 23:42 UTC (permalink / raw)
  To: Christian Jönsson FOA 72, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]

--- Christian Jönsson FOA 72 <chj@lin.foa.se> wrote:
> I'm just wondering if more people than I have encountered problems
> with cygwin's B20.1 awk. I try running some validation tests of a
> network simulator ns2 under Win NT 4.0 sp3 using cygwin b20.1 and its
> awk. Now, running these validations under Red Hat Linux 6.0/Intel works
> fine but they fail with "strange" comments from b20.1's awk claiming
> commands are corrupt...
> 
> Anyway, if there are know problems with awk, perhaps it's compiled
> somewhere on the net here but I haven't found it. If you know of such
> an URL please let me know before I go hunting for errors...

I don't remember anyone reporting anything from awk.  Just guessing it would
have to do with the "text processing mode" vs "binary processing mode" issue. 
See the FAQ, Documentation Pages and the archives for explanations of this.

=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >

Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >

(If you respond to the list, then please don't cc me)
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

* Re: awk problems in B20.1?
@ 1999-09-26 18:48 Earnie Boyd
  1999-09-30 23:42 ` Earnie Boyd
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Earnie Boyd @ 1999-09-26 18:48 UTC (permalink / raw)
  To: Christian Jönsson FOA 72, cygwin

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 1276 bytes --]

--- Christian Jönsson FOA 72 <chj@lin.foa.se> wrote:
> I'm just wondering if more people than I have encountered problems
> with cygwin's B20.1 awk. I try running some validation tests of a
> network simulator ns2 under Win NT 4.0 sp3 using cygwin b20.1 and its
> awk. Now, running these validations under Red Hat Linux 6.0/Intel works
> fine but they fail with "strange" comments from b20.1's awk claiming
> commands are corrupt...
> 
> Anyway, if there are know problems with awk, perhaps it's compiled
> somewhere on the net here but I haven't found it. If you know of such
> an URL please let me know before I go hunting for errors...

I don't remember anyone reporting anything from awk.  Just guessing it would
have to do with the "text processing mode" vs "binary processing mode" issue. 
See the FAQ, Documentation Pages and the archives for explanations of this.

=====
Earnie Boyd < mailto:earnie_boyd@yahoo.com >

Newbies, please visit
< http://www.freeyellow.com/members5/gw32/index.html >

(If you respond to the list, then please don't cc me)
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com

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

^ permalink raw reply	[flat|nested] 12+ messages in thread

end of thread, other threads:[~1999-10-31 19:54 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-09-26 12:21 awk problems in B20.1? Christian Jönsson FOA 72
1999-09-30 23:42 ` Christian Jönsson FOA 72
1999-09-26 18:48 Earnie Boyd
1999-09-30 23:42 ` Earnie Boyd
1999-10-15  6:30 ` Christian Jönsson FOA 72
1999-10-31 19:54   ` Christian Jönsson FOA 72
1999-10-15  6:31 ` Christian Jönsson FOA 72
1999-10-31 19:54   ` Christian Jönsson FOA 72
1999-10-15  6:30 Christian Jönsson FOA 72
1999-10-31 19:54 ` Christian Jönsson FOA 72
1999-10-15  6:30 Christian Jönsson FOA 72
1999-10-31 19:54 ` Christian Jönsson FOA 72

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).