Project

General

Profile

Bug #614

catman should execute nawk

Added by Garrett D'Amore about 10 years ago. Updated over 6 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:

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
#1

Updated by Yuri Pankov about 10 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?

#2

Updated by Roland Mainz about 10 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 ?

#3

Updated by Roland Mainz about 10 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...

#4

Updated by Garrett D'Amore about 10 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?

#5

Updated by Garrett D'Amore over 9 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.

#6

Updated by Garrett D'Amore over 9 years ago

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

Updated by Reginald Beardsley about 8 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?

#8

Updated by Yuri Pankov about 8 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).

#9

Updated by Yuri Pankov over 6 years ago

  • Status changed from New to Closed

Obsoleted by #5025.

Also available in: Atom PDF