Project

General

Profile

Actions

Bug #614

closed

catman should execute nawk

Added by Garrett D'Amore almost 13 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Category:
cmd - userland programs
Start date:
2011-01-08
Due date:
% Done:

0%

Estimated time:
Difficulty:
Bite-size
Tags:
Gerrit CR:
External Bug:

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.


Related issues

Related to illumos gate - Bug #5025: import and use mandocClosedGarrett D'Amore2014-07-18

Actions
Actions #1

Updated by Yuri Pankov almost 13 years ago

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?

Actions #2

Updated by Roland Mainz almost 13 years ago

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 ?

Actions #3

Updated by Roland Mainz almost 13 years ago

  • 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...

Actions #4

Updated by Garrett D'Amore almost 13 years ago

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?

Actions #5

Updated by Garrett D'Amore over 12 years ago

  • 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.

Actions #6

Updated by Garrett D'Amore over 12 years ago

  • Difficulty changed from Medium to Bite-size
  • Tags deleted (needs-triage bite-size)
Actions #7

Updated by Reginald Beardsley almost 11 years ago

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?

Actions #8

Updated by Yuri Pankov over 10 years ago

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).

Actions #9

Updated by Yuri Pankov over 9 years ago

  • Status changed from New to Closed

Obsoleted by #5025.

Actions

Also available in: Atom PDF