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
|
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!
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
simple fix, change code to be the same for the type declaration and things work
just fine.
validated on x86_64 and ppc64 (x86_64 seems to do the right thing regardless so
that arch never sees the bug)
*** Bug 49101 has been marked as a duplicate of this bug. ***