[comp.sources.bugs] Uuhosts Bombs in Unpacking Maps

bruce@bnr-vpa.UUCP (12/04/87)

	Uuhosts exits with an error when unpacking uucp map postings
on my system.  The uuhosts version is: '@(#) uuhosts.sh 1.69 86/01/06'.
My system is an HP9000 running HP-UX 5.21, which is a mostly Sys Vr2
port.  When a map posting is unpacked (uuhosts -x < mapfile), it uses
awk, which exits with:
	awk: syntax error near line 34
	awk: illegal statement near line 34
	awk: syntax error near line 43
	awk: illegal statement near line 43
I believe this corresponds to the following two lines:
	print "PATH=/bin; umask 0002; cd '$UUCPMAP'" | "'$MAPSH'";
	print | "'$MAPSH'";
which looks like an attempt to pipe the output of the print to another
command (in this case mapsh).  I cannot find documentation for this
syntax in my awk man page or tutorial, and so believe that this is not
supported by this version of awk (all Sys Vr2 awks?).

1) Is there a newer version of uuhosts that addresses this?
2) Is my awk buggy?
3) Has anyone else encountered this and solved it?

Thanks,
-- 
Bruce Townsend (bnr-vpa!bruce)	Phone:	(613) 726-3008
Bell-Northern Research		Usenet: {utzoo, utcs}!bnr-vpa!bruce
P.O. Box 3511, Station C, Ottawa, Ontario, Canada, K1Y 4H7