Bug 48990 - gawk -f x -f y has problems
Bug#: 48990 Product:  Gentoo Linux Version: 2004.0 Platform: PPC64
OS/Version: All Status: CLOSED Severity: normal Priority: P2
Resolution: FIXED Assigned To: base-system@gentoo.org Reported By: tgall@gentoo.org
Component: Core system
URL: 
Summary: gawk -f x -f y has problems
Keywords:  
Status Whiteboard: 
Opened: 2004-04-25 19:22 0000
Description:   Opened: 2004-04-25 19:22 0000
given where x is a file of the form:

BEGIN { print "hello world" }

and y is a file of the form:

BEGIN { print "hello world" }

it should print hello world twice ... it does not!

------- Comment #1 From Tom Gall 2004-04-25 19:23:25 0000 -------
The bug is because numfiles is declared as a long in main.c but extern int in
awkgram.y / awkgram.c.  This bug appears that it would affect all 64 bit
architectures

------- Comment #2 From Tom Gall 2004-04-25 19:41:12 0000 -------
simple fix, change code to be the same for the type declaration and things work
just fine.

------- Comment #3 From Tom Gall 2004-04-25 19:44:18 0000 -------
validated on x86_64 and ppc64 (x86_64 seems to do the right thing regardless so
that arch never sees the bug)

------- Comment #4 From Tom Gall 2004-04-25 19:44:41 0000 -------
done, dead...

------- Comment #5 From Martin Holzer (RETIRED) 2004-04-28 05:15:33 0000 -------
*** Bug 49101 has been marked as a duplicate of this bug. ***