bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gawk 3.1.6 bug in /inet/tcp/lport/0/0


From: Aharon Robbins
Subject: Re: gawk 3.1.6 bug in /inet/tcp/lport/0/0
Date: Thu, 15 Nov 2007 23:07:17 +0200

Greetings. Re the below. I don't get any such message under Linux.
Please talk to the cygwin people directly. I have bcc'ed the Cygwin
contact for gawk, so I hope she will be in touch w/you directly.

Thanks,

Arnold

> Date: Tue, 13 Nov 2007 14:33:58 -0600 (CST)
> From: Richard Narum <address@hidden>
> Subject: gawk 3.1.6 bug in /inet/tcp/lport/0/0
> To: address@hidden
>
> FYI, 
>
> I believe I have encountered a bug in gawk 3.1.6 with the special file
> name /inet/tcp using lport != 0 and rhost = rport = 0. I am running
> Cygwin on Windows XP version "CYGWIN_NT-5.1 1.5.24(0.156/4/2) 2007-01-31
> 10:57". I had version "GNU Awk 3.1.6", Cygwin install calls it 3.1.6-1,
> and had to roll back to "GNU Awk 3.1.5", Cygwin's 3.1.5-4 . Version
> 3.1.6 fails and 3.1.5 seems to work fine.
>
> I am running the following script. 
>
>
> #!/bin/sh 
>
> gawk ' 
> BEGIN { 
> RS = ORS = "\r\n" 
> HttpService = "/inet/tcp/8080/0/0" 
> Hello = "<HTML><HEAD></HEAD><BODY><PRE>Hello World!</PRE></BODY></HTML>" 
> Len = length(Hello) + length(ORS) 
> while ("awk" != "complex") { 
> print "HTTP/1.0 200 OK" |& HttpService 
> print "Content-Length: " Len ORS |& HttpService 
> print Hello |& HttpService 
> while ((HttpService |& getline) > 0) 
> continue; 
> close(HttpService) 
> } 
> } 
> ' 
>
> I get the following error. 
>
>
> gawk: cmd. line:8: fatal: remote host and port information (0, 0) invalid 
>
> Thank you, 
>
> Richard Narum, Design/CAD Systems Engineer 
> Applied Engineering, Inc. 
> 1025 Airport Road 
> Bismarck, ND 58504 
> Phone: 701-255-1137 
> Fax: 701-255-1046 
> www.ae-solutions.com 




reply via email to

[Prev in Thread] Current Thread [Next in Thread]