[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
gawk 3.1.6 bug in /inet/tcp/lport/0/0
From: |
Richard Narum |
Subject: |
gawk 3.1.6 bug in /inet/tcp/lport/0/0 |
Date: |
Tue, 13 Nov 2007 14:33:58 -0600 (CST) |
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
--
- gawk 3.1.6 bug in /inet/tcp/lport/0/0,
Richard Narum <=