From: alain AT qnx DOT com (Alain Magloire) Newsgroups: comp.os.msdos.djgpp Subject: Re: ANNOUNCE: DJGPP port of Gawk 3.0.4 uploaded Date: 24 Jan 2000 04:55:15 GMT Organization: QNX Software Systems Lines: 44 Message-ID: <86glvj$8i4$1@gateway.qnx.com> References: <200001221803 DOT MAA11680 AT darwin DOT sfbr DOT org> NNTP-Posting-Host: qnx.com X-Trace: gateway.qnx.com 948689715 8772 209.226.137.1 (24 Jan 2000 04:55:15 GMT) X-Complaints-To: usenet AT qnx DOT com NNTP-Posting-Date: 24 Jan 2000 04:55:15 GMT X-Newsreader: TIN [version 1.2 PL2] To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Jeff Williams (jeffw AT darwin DOT sfbr DOT org) wrote: : -: > Is there a reason to (or not to) also include the symlink `nawk.exe' as : -: > well as `awk.exe' (both stubedited to point to gawk)? : -: : -: The reason `awk.exe' is included is because the "install:" target of the Gawk : Here's why I asked. The man page for nawk (from Solaris 2.7, but I : first read it in a SunOS 4.x manpage) contains the following note: : ------ : NOTES : nawk is a new version of awk that provides capabilities : unavailable in previous versions. This version will become : the default version of awk in the next major release. : ------ : I suppose this means the `next major release' of awk. Anyway, after : reading that I got into the habit of using `nawk' rather than `awk' in : scripts, etc. Maybe I should break that habit and just alias `awk' to : `nawk' on my Sun box, and both `awk' and `nawk' to `gawk' on my djgpp : box. Then I could just use `awk' everywhere and not worry it. Sun Box (SunOS-4.x) and other Un*x box, was ship with an old version of awk /usr/bin/awk that is not POSIX compliant and contain bugs. A new better version was written nawk. But for hysterical reasons they could not get rid of "awk". It is usually better to use 'nawk' On a GNU platform, GNU awk is awk (gawk), there is no nawk. We do not have to carry that baggage and GNU awk, was change to better POSIX compliant etc .. without having to rename it ;-). Same thing goes for egrep, On SunOS you have the old egrep /usr/bin/egrep and the new better one that is full XPG4 and POSIX /usr/xpg4/bin/egrep. for example /usr/bin/egrep does not implement intervals {} but /usr/xpg3/bin/egrep does etc .. This was always a source of confusion. Again for hysterical reason, /usr/xpg4/bin/{,e,f}grep could just not be drop in /usr/bin to replace the old, It would break to many scripts Hum . I don't think I was very helpfull for your problem ;-) -- au revoir, alain ---- Aussi haut que l'on soit assis, on est toujours assis que sur son cul !!!