Article View: comp.os.aos
Article #36Bug(?) in tcpipparams (Aviion 300 + DG/UX 4.10)
From: Jan B. Andersen
Date: Wed, 04 Oct 1989 18:03
Date: Wed, 04 Oct 1989 18:03
21 lines
1298 bytes
1298 bytes
After spending a couple of hours trying to get a new Aviion workstation
connected to the net, I have discovered a bug in the tcpipparams script.
In the script a shell-function called generate_minimum_netmask uses awk
to calculate the netmask: (from my memory)
echo $1 | awk 'BEGIN {
if ( $1 < 127 ).....
On my machine, awk terminates with a cryptic error message, and the
script continues with a wrong result.
Why is the BEGIN necessary? It's not used in any of the other functions.
If I delete the BEGIN, everything works fine.
Is it time for comp.os.dgux?
--
/| / Postmaster@RUC.dk /^^^\ .----------------.
/ | / DG-passer@RUC.dk { o_o } | SIMULA does it |
/--|/ jba@meza.RUC.dk \ o / --> | with CLASS |
`--' ' rucjb@os1100.uni-c.dk --mm---mm-- `----------------'
Technical Details
Message-ID:
<170@harald.UUCP>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!sunic!dkuug!harald.ruc.dk!jbaShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!rpi!gem.mps.ohio-state.edu!ginosko!uunet!mcsun!sunic!dkuug!harald.ruc.dk!jba From: jba@harald.ruc.dk (Jan B. Andersen) Newsgroups: comp.os.aos Subject: Bug(?) in tcpipparams (Aviion 300 + DG/UX 4.10) Message-ID: <170@harald.UUCP> Date: 4 Oct 89 18:03:20 GMT Organization: RUC - Roskilde University Center, Denmark Lines: 21