Mail Archives: djgpp/2000/01/24/01:18:14
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 !!!
- Raw text -