Bug #614
catman should execute nawk
Added by Garrett D'Amore about 10 years ago.
Updated over 6 years ago.
Category:
cmd - userland programs
Description
catman currently uses ancient "awk", which has some rather unfortunate line limitations. (One could argue that it is time for awk to be replaced by nawk....)
catman itself is kind of crufty.... and needs an overhaul, but using a modern awk would be a good start.
May be it's time to update nawk as well, instead of fixing:
$ nawk -d
awk version Oct 11, 1989
./nawk: no program given
Abort (core dumped)
and similar issues?
Yuri Pankov wrote:
May be it's time to update nawk as well, instead of fixing:
[...]
and similar issues?
Erm... can you file a bug for the core dump and CC: me, please ?
- Assignee set to Roland Mainz
Erm... technically I'm interested to use /usr/xpg4/bin/awk in "catman"&co. ... and maybe just using the re-write I had queued for a long time...
... anyway... talking bug...
Well, xpg4/bin/awk is not delivered as part of the base set, so I'm a bit more cautious about making catman depend on it.
That said, I thought nawk was xpg4/awk, but I now see the binaries at least are different. We have source for both xpg4/awk and nawk, as well as oawk. I don't understand why we have three different versions here.
Perhaps its time to consolidate to just one?
What am I missing? What does nawk provide that xpg4/awk doesn't? Or vice versa?
- Assignee deleted (
Roland Mainz)
- Difficulty set to Medium
- Tags set to needs-triage bite-size
Taking bug away from Roland... he's not working on it.
- Difficulty changed from Medium to Bite-size
- Tags deleted (
needs-triage bite-size)
Reginald Beardsley wrote:
Why not just use "The One True Awk"?
http://www.cs.princeton.edu/~bwk/btl.mirror/
As for the many awks issue, does anyone know of anything that depends upon old awk syntax and/or semantics?
nawk IS "One True Awk" (a bit dated though).
- Status changed from New to Closed
Also available in: Atom
PDF